1
0
Fork 0

Moved ampersand escaping in msgfmt to occur before other replacements

Oops
master
Mike Gerwitz 2012-10-27 23:09:03 -04:00
parent 7c5fb75352
commit a570abc87a
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 1 additions and 1 deletions

2
msgfmt
View File

@ -45,9 +45,9 @@ done
awk '/^diff --git/ { exit } { print }' \ awk '/^diff --git/ { exit } { print }' \
| sed ':a;N;$!ba; | sed ':a;N;$!ba;
# escaping # escaping
s/\&/\&/g;
s/</\&lt;/g; s/</\&lt;/g;
s/>/\&gt;/g; s/>/\&gt;/g;
s/\&/\&amp;/g;
# quoting (initiated by an indented paragraph and terminated by a new # quoting (initiated by an indented paragraph and terminated by a new
# paragraph) # paragraph)