summaryrefslogtreecommitdiff
path: root/docutils/utils.py
diff options
context:
space:
mode:
authorfdrake <fdrake@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-03-30 22:17:25 +0000
committerfdrake <fdrake@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2004-03-30 22:17:25 +0000
commitcac4685cb0442239fe73d2bd9b007ffb3a7317f4 (patch)
tree0087c062f72417e36f3b0230cd110278226ec01e /docutils/utils.py
parent82a7c91551ba17af1813fdfe69688c794ee2ce3e (diff)
downloaddocutils-cac4685cb0442239fe73d2bd9b007ffb3a7317f4.tar.gz
- allow RCS/CVS $keywords$ to be handled even if there is other text in the
relevant docinfo fields (closes SF bug #926198) - make the tests of the RCS/CVS $keyword$ handling less fragile in the face of non-default -k options (closes SF bug #921085) git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@1898 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils/utils.py')
-rw-r--r--docutils/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/utils.py b/docutils/utils.py
index 2e60a6c6f..148845330 100644
--- a/docutils/utils.py
+++ b/docutils/utils.py
@@ -406,7 +406,7 @@ def clean_rcs_keywords(paragraph, keyword_substitutions):
if len(paragraph) == 1 and isinstance(paragraph[0], nodes.Text):
textnode = paragraph[0]
for pattern, substitution in keyword_substitutions:
- match = pattern.match(textnode.data)
+ match = pattern.search(textnode.data)
if match:
textnode.data = pattern.sub(substitution, textnode.data)
return