summaryrefslogtreecommitdiff
path: root/docutils
diff options
context:
space:
mode:
authorwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-06-29 19:54:50 +0000
committerwiemann <wiemann@929543f6-e4f2-0310-98a6-ba3bd3dd1d04>2005-06-29 19:54:50 +0000
commit9db8f7c8295348ded4cd5c7af27b69168b1ad129 (patch)
treef41835aacfa3bf06d59b3fa72dbf503b2e78b181 /docutils
parent792767626af0d18cfabe846835b94934c52cbb00 (diff)
downloaddocutils-9db8f7c8295348ded4cd5c7af27b69168b1ad129.tar.gz
stricter regex
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@3634 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'docutils')
-rw-r--r--docutils/docutils/writers/html4css1.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docutils/docutils/writers/html4css1.py b/docutils/docutils/writers/html4css1.py
index f401dae83..5a1138522 100644
--- a/docutils/docutils/writers/html4css1.py
+++ b/docutils/docutils/writers/html4css1.py
@@ -885,7 +885,7 @@ class HTMLTranslator(nodes.NodeVisitor):
del im
for att_name in 'width', 'height':
if atts.has_key(att_name):
- match = re.match(r'([0-9.]+)(.*)', atts[att_name])
+ match = re.match(r'([0-9.]+)(\S*)$', atts[att_name])
assert match
atts[att_name] = '%s%s' % (
float(match.group(1)) * (float(node['scale']) / 100),