summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2013-05-12 16:35:22 +0200
committerJonas Smedegaard <dr@jones.dk>2013-05-12 16:35:22 +0200
commit602656b54d19712da2e9e5ecc77948a739a43971 (patch)
tree85c3da80af88a2640944256573a92d656dab03aa
parent562739d75878cb1818c9e07d57e27991085b7e22 (diff)
Cover optional italic in article headline in html2html-1.HEADmaster
-rwxr-xr-xmkhtm2html-12
1 files changed, 1 insertions, 1 deletions
diff --git a/mkhtm2html-1 b/mkhtm2html-1
index 307a584..ced72e7 100755
--- a/mkhtm2html-1
+++ b/mkhtm2html-1
@@ -40,7 +40,7 @@ s{<P\b[^>]*class="([^"]+)"[^>]*><b>[^<]+\K</b></P>\s*<P\b[^>]*class="\1"[^>]*><b
# headline
s{<P\b[^>]*>(TITLE \S+)</P>\s*<P\b[^>]*><b>((?:(?!</P\b).)+.)</b></P>}{<H1>$1</H1>\n<H2>$2</H2>}mg;
s{<P\b[^>]*><i>(SECTION \S+)</i></P>\s*<P\b[^>]*><i><b>((?:(?!</P\b).)+.)</b></i></P>}{<H1>$1</H1>\n<H2>$2</H2>}mg;
-s{<P\b[^>]*><i>((?:Article|ANNEX) \S+)</i></P>\s*<P\b[^>]*><b>((?:(?!</P\b).)+.)</b></P>}{<H1>$1</H1>\n<H2>$2</H2>}mg;
+s{<P\b[^>]*><i>((?:Article|ANNEX) \S+)</i></P>\s*<P\b[^>]*>(?:<i>)?<b>((?:(?!</P\b).)+.)</b>(?:</i>)?</P>}{<H1>$1</H1>\n<H2>$2</H2>}mg;
s{(<P\b[^>]*>)(\d+)\. }{<H3>$2</H3>\n$1}mg;
s{<P\b[^>]*>\(([a-z])\)</P>}{<H4>$1</H4>}mg;
s{(<P\b[^>]*>)\(([ivx]+)\) }{<H5>$2</H5>\n$1}mg;