1
0
Fork 0

Added blockquote support to msgfmt

master
Mike Gerwitz 2012-10-16 22:49:46 -04:00
parent ff237bbc6f
commit 3adf4a836a
No known key found for this signature in database
GPG Key ID: F22BB8158EE30EAB
1 changed files with 4 additions and 0 deletions

4
msgfmt
View File

@ -49,6 +49,10 @@ awk '/^diff --git/ { exit } { print }' \
s/>/\>/g; s/>/\>/g;
s/\&/\&/g; s/\&/\&/g;
# quoting (initiated by an indented paragraph and terminated by a new
# paragraph)
s#\n\n \+\(\([^\n]\+\n\)\+\)#<blockquote>\1</blockquote>#g
# unfortunately, non-greedy matches make it difficult to exclude punctuation # unfortunately, non-greedy matches make it difficult to exclude punctuation
# at the end of a link, so we will not be handling it here (since links # at the end of a link, so we will not be handling it here (since links
# should always be in the footer as references (ideally), this should not # should always be in the footer as references (ideally), this should not