Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mikegerwitz@gnu.org>2014-11-30 16:31:57 -0500
committerMike Gerwitz <mikegerwitz@gnu.org>2014-11-30 16:32:39 -0500
commit61804d8e1d7cd4c26d1b7ec94d7311418de6a1b5 (patch)
tree7af7f2606d803f0233a95725d5759ec0308cde1e
parent2ff9b89452cb038a9b947ef8f44ad0e6d106a38e (diff)
downloadrepo2html-61804d8e1d7cd4c26d1b7ec94d7311418de6a1b5.tar.gz
repo2html-61804d8e1d7cd4c26d1b7ec94d7311418de6a1b5.tar.bz2
repo2html-61804d8e1d7cd4c26d1b7ec94d7311418de6a1b5.zip
Pre-formatted block (blockquote) in msgfmt
This has existed for a while; must have forgotten to commit
-rwxr-xr-xmsgfmt3
1 files changed, 3 insertions, 0 deletions
diff --git a/msgfmt b/msgfmt
index 8579a0c..be734f0 100755
--- a/msgfmt
+++ b/msgfmt
@@ -98,6 +98,9 @@ awk -vid="$id" -vurl_root="${url_root%/}" -vcref_errlog="$cref_errlog" '
# paragraph, unless that paragraph is also indented)
s#\n\n \+\(\([^\n]\+\n\(\n \+\)\?\)\+\)#<blockquote>\1</blockquote>#g
+ # pre-formatted block. markdown-style
+ s#\n\n \+\(\([^\n]\+\n\(\n \+\)\?\)\+\)#<blockquote>\1</blockquote>#g
+
# unfortunately, non-greedy matches make it difficult to exclude punctuation
# at the end of a link, so we will handle it in a separate expression
s#[fh]ttps\?://[^]\n )]\+#<a href="&">&</a>#g;