From a1714be15507ed87f8d6779e9634f14667145a8e Mon Sep 17 00:00:00 2001 From: Taka Date: Thu, 2 Jul 2020 02:12:48 +0000 Subject: [PATCH] Handle spaces when detecting dagger blocks in Chapter H content. --- vasl_templates/webapp/vo_notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vasl_templates/webapp/vo_notes.py b/vasl_templates/webapp/vo_notes.py index b2efb55..c2eaeb1 100644 --- a/vasl_templates/webapp/vo_notes.py +++ b/vasl_templates/webapp/vo_notes.py @@ -148,7 +148,7 @@ def load_vo_notes( msg_store ): #pylint: disable=too-many-statements,too-many-lo # FUDGE! The HTML version of the Chapter H content contain a lot of notes # that start with "

†". We detect these and add a CSS class. # Larger blocks of content need to be wrapped in a

. - html_content = re.sub( r"^<(p|div)> †", r"<\1 class='dagger-note'> †", + html_content = re.sub( r"^<(p|div)>\s*†", r"<\1 class='dagger-note'> †", html_content, flags=re.MULTILINE )