From ccaf5b659c5cd844d15e3fdebe359154a2e2c138 Mon Sep 17 00:00:00 2001 From: Shreyank Gupta Date: Tue, 2 Oct 2012 12:44:38 +0530 Subject: [PATCH] Code blocks regex now captures all pygments short-names --- src/landslide/macro.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/landslide/macro.py b/src/landslide/macro.py index f688a4f3..9309c175 100644 --- a/src/landslide/macro.py +++ b/src/landslide/macro.py @@ -50,7 +50,7 @@ class CodeHighlightingMacro(Macro): Pygments. """ code_blocks_re = re.compile( - r'(()?\s?!(\w+?)\n(.*?)()?)', + r'(()?\s?!(\S+?)\n(.*?)()?)', re.UNICODE | re.MULTILINE | re.DOTALL) html_entity_re = re.compile('&(\w+?);')