From 60c281a14f63172be98e68c288147e04d6f7b050 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Sat, 2 Feb 2019 13:25:38 +0100 Subject: [PATCH] Add newline inside double quote for multines story, refer to #1 --- extract_module.sh | 2 ++ 1 file changed, 2 insertions(+) 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