From 16fa3b0b8f6e6dd4a25a52f17774c049e45221c8 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 --- src/docgen/HtmlDoc.py | 22 ++++++++++++++++++++-- src/docgen/PSDrawDoc.py | 5 ++++- src/plugins/WebPage.py | 2 ++ 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/src/docgen/HtmlDoc.py b/src/docgen/HtmlDoc.py index 9a6ae8cf8..d7e07d66b 100644 --- a/src/docgen/HtmlDoc.py +++ b/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', '