From 61804d8e1d7cd4c26d1b7ec94d7311418de6a1b5 Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Sun, 30 Nov 2014 16:31:57 -0500 Subject: [PATCH] Pre-formatted block (blockquote) in msgfmt This has existed for a while; must have forgotten to commit --- msgfmt | 3 +++ 1 file changed, 3 insertions(+) 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 \+\)\?\)\+\)#
\1
#g + # pre-formatted block. markdown-style + s#\n\n \+\(\([^\n]\+\n\(\n \+\)\?\)\+\)#
\1
#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 )]\+#&#g;