Browse Source

Add newline inside double quote for multines story, refer to #1

master
LecygneNoir 5 years ago
parent
commit
60c281a14f
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      extract_module.sh

+ 2
- 0
extract_module.sh View File

@ -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

Loading…
Cancel
Save