From 8bf29135187b0e0816070d994adc5ec05ba5a11c Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 29 Jan 2003 03:06:51 +0000 Subject: [PATCH] keyword substituion in HTML documents svn: r1274 --- gramps2/src/docgen/HtmlDoc.py | 22 ++++++++++++++++++++-- gramps2/src/docgen/PSDrawDoc.py | 5 ++++- gramps2/src/plugins/WebPage.py | 2 ++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/gramps2/src/docgen/HtmlDoc.py b/gramps2/src/docgen/HtmlDoc.py index 9a6ae8cf8..d7e07d66b 100644 --- a/gramps2/src/docgen/HtmlDoc.py +++ b/gramps2/src/docgen/HtmlDoc.py @@ -35,6 +35,8 @@ from intl import gettext as _ t_header_line_re = re.compile(r"(.*)(.*)(.*)", re.DOTALL|re.IGNORECASE|re.MULTILINE) +t_keyword_line_re = re.compile(r'(.*name="keywords"\s+content=")([^\"]*)(".*)$', + re.DOTALL|re.IGNORECASE|re.MULTILINE) #------------------------------------------------------------------------ # @@ -45,7 +47,8 @@ _top = [ '\n', '\n', '\n', - ' \n', + ' \n', + ' \n', ' \n', ' \n', '