From e036c59f15281fd90ef6c2ec136627f1cce9e4e5 Mon Sep 17 00:00:00 2001 From: James Crook Date: Tue, 22 Aug 2017 16:05:43 +0100 Subject: [PATCH] Fixes to local-manual script Part 1. This removes the editornotes, and the unwanted portlets. It also uses 303.css. --- scripts/mw2html_audacity/mw2html.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/scripts/mw2html_audacity/mw2html.py b/scripts/mw2html_audacity/mw2html.py index dde3e3375..25bde7ea5 100644 --- a/scripts/mw2html_audacity/mw2html.py +++ b/scripts/mw2html_audacity/mw2html.py @@ -187,12 +187,17 @@ def monobook_fix_html(doc, page_url): if config.made_by: doc = doc.replace('', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '\n', doc, flags=re.DOTALL) + + # Replace remaining text with footer, if available (this needs to be done after parse_html to avoid rewriting of urls if config.footer is not None: s1 = '