Skip to content
Snippets Groups Projects
Commit 9e6cef90 authored by Jay Vora's avatar Jay Vora
Browse files

Bugfix:unit problem in rml2pdf

bzr revid: jvo@tinyerp.com-20081013062232-g24j9qbky10ocw4u
parent 1606b963
Branches
Tags
No related merge requests found
......@@ -57,7 +57,7 @@ def text_get(node):
units = [
(re.compile('^(-?[0-9\.]+)\s*in$'), reportlab.lib.units.inch),
(re.compile('^(-?[0-9\.]+)\s*cm$'), reportlab.lib.units.cm),
(re.compile('^(-?[0-9\.]+)\s*cm$'), reportlab.lib.units.cm),
(re.compile('^(-?[0-9\.]+)\s*mm$'), reportlab.lib.units.mm),
(re.compile('^(-?[0-9\.]+)\s*$'), 1)
]
......@@ -93,7 +93,7 @@ def attr_get(node, attrs, dict={}):
elif dict[key]=='int':
res[key] = int(node.getAttribute(key))
elif dict[key]=='unit':
res[key] = unit_get(node.getAttribute(name))
res[key] = unit_get(node.getAttribute(key))
return res
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment