diff --git a/extract_module.sh b/extract_module.sh index 6a8d0ca..9607f1c 100755 --- a/extract_module.sh +++ b/extract_module.sh @@ -74,6 +74,8 @@ while read -r line; do story_first_line=0 elif [[ ${comment_story} != "" ]]; then # We are on a multilines story, write it but without the msgid + # Also as this is multiline, we need to add \n to the previous line (no way to detect it sooner...) + sed -e '$s/\(.*\)"$/\1\\n"/' -i "${POT}" echo "\"${line}\"" | tr -d '\r' | tr -d '\n' >> "${POT}" echo >> "${POT}" else