diff --git a/src/plugins/NarrativeWeb.py b/src/plugins/NarrativeWeb.py
index 0566d7544..a31158c18 100644
--- a/src/plugins/NarrativeWeb.py
+++ b/src/plugins/NarrativeWeb.py
@@ -39,7 +39,7 @@ import locale
import shutil
import codecs
import tarfile
-import operator
+import operator
from gettext import gettext as _
from cStringIO import StringIO
from textwrap import TextWrapper
@@ -62,11 +62,11 @@ import gen.lib
import const
from GrampsCfg import get_researcher
import Sort
-from PluginUtils import (register_report, FilterOption, EnumeratedListOption,
- PersonOption, BooleanOption, NumberOption,
- StringOption, DestinationOption, NoteOption,
+from PluginUtils import (register_report, FilterOption, EnumeratedListOption,
+ PersonOption, BooleanOption, NumberOption,
+ StringOption, DestinationOption, NoteOption,
MediaOption)
-from ReportBase import (Report, ReportUtils, MenuReportOptions, CATEGORY_WEB,
+from ReportBase import (Report, ReportUtils, MenuReportOptions, CATEGORY_WEB,
MODE_GUI, MODE_CLI, Bibliography)
import Utils
import ThumbNails
@@ -130,33 +130,34 @@ _CHARACTER_SETS = [
_CC = [
''
- '',
-
+ '',
+
''
'',
-
+ 'src="#PATH#images/somerights20.gif" />',
+
''
'',
-
+ 'src="#PATH#images/somerights20.gif" />',
+
''
'',
-
+ 'src="#PATH#images/somerights20.gif" />',
+
''
- '',
-
+ '',
+
''
- ''
+ ''
]
_COPY_OPTIONS = [
@@ -175,21 +176,25 @@ wrapper = TextWrapper()
wrapper.break_log_words = True
wrapper.width = 20
-# This list of characters defines which hexadecimal entity certain 'special characters' with be transformed into for valid HTML rendering.
-# The variety of quotes with spaces are to assist in appropriately typesetting curly quotes and apostrophes.
+# This list of characters defines which hexadecimal entity certain
+# 'special characters' with be transformed into for valid HTML
+# rendering. The variety of quotes with spaces are to assist in
+# appropriately typesetting curly quotes and apostrophes.
html_escape_table = {
- "&": "&",
- ' "': " “",
- '" ': "” ",
- " '": " ‘",
- "' ": "’ ",
+ "&" : "&",
+ ' "' : " “",
+ '" ' : "” ",
+ " '" : " ‘",
+ "' " : "’ ",
"'s ": "’s ",
- '"': """,
- "'": "'",
- ">": ">",
- "<": "<",
+ '"' : """,
+ "'" : "'",
+ ">" : ">",
+ "<" : "<",
}
-# This command then defines the 'html_escape' option for escaping special characters for presentation in HTML based on the above list.
+
+# This command then defines the 'html_escape' option for escaping
+# special characters for presentation in HTML based on the above list.
def html_escape(text):
"""Produce entities within text."""
L=[]
@@ -197,6 +202,7 @@ def html_escape(text):
L.append(html_escape_table.get(c,c))
return "".join(L)
+
class BasePage:
def __init__(self, title, options, archive, photo_list, gid):
self.title_str = title
@@ -354,14 +360,14 @@ class BasePage:
of.write('\n\n')
of.write('