From 10c0002af1ac347d378cba6393120c4fec41c19c Mon Sep 17 00:00:00 2001 From: Jeff Dairiki Date: Thu, 16 Oct 2014 06:59:32 -0700 Subject: [PATCH] Fix bug with custom reST :abbr: role. Fixes #949 This fixes things so that newlines are allowed within the explanation of an :abbr: role in reST mark-up. --- pelican/rstdirectives.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pelican/rstdirectives.py b/pelican/rstdirectives.py index 1bf6971c..1c25cc42 100644 --- a/pelican/rstdirectives.py +++ b/pelican/rstdirectives.py @@ -70,7 +70,7 @@ directives.register_directive('code-block', Pygments) directives.register_directive('sourcecode', Pygments) -_abbr_re = re.compile('\((.*)\)$') +_abbr_re = re.compile('\((.*)\)$', re.DOTALL) class abbreviation(nodes.Inline, nodes.TextElement):