diff --git a/msgfmt b/msgfmt index 1ac4619..a21f740 100755 --- a/msgfmt +++ b/msgfmt @@ -34,8 +34,14 @@ awk '/^diff --git/ { exit } { print }' \ # happen s#[fh]ttps\?://[^]\n )]\+#&#g; + # reference definitions (footnotes) + s#\n\[\([0-9]\+\)\]#

&#g; + + # references in text + s|\[\([^]]\+\)\]\[\([0-9]\+\)\]|\1\[\2\]|g + s|\[\([0-9]\+\)\]|&|g + # paragraphs - s#\n\[[0-9]\+\]#

&#g; s#\n\n#

&

#g; # basic formatting