|
|
|
@ -145,6 +145,14 @@ def load_vo_notes( msg_store ): #pylint: disable=too-many-statements,too-many-lo |
|
|
|
|
key = get_ma_note_key( nat2, os.path.split(fname)[1] ) |
|
|
|
|
if re.search( r"^\d+(\.\d+)?$", key ): |
|
|
|
|
|
|
|
|
|
# FUDGE! The HTML version of the Chapter H content contain a lot of notes |
|
|
|
|
# that start with "<p> †". We detect these and add a CSS class. |
|
|
|
|
# Larger blocks of content need to be wrapped in a <div>. |
|
|
|
|
html_content = re.sub( r"^<(p|div)> †", r"<\1 class='dagger-note'> †", |
|
|
|
|
html_content, |
|
|
|
|
flags=re.MULTILINE |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# check if the content is specifying its own layout |
|
|
|
|
if "<!-- vasl-templates:manual-layout -->" not in html_content: |
|
|
|
|
# nope - use the default one |
|
|
|
|