paaraparser/paragraph.py: add info re percentage in <img> for idea contributed by Roberto Alsina <ralsina@netmanagers.com.ar>
authorrgbecker
Wed, 08 Sep 2010 15:11:10 +0000
changeset 3440 739ddbe7feab
parent 3439 dc7b50400f12
child 3441 574d72e1ea74
paaraparser/paragraph.py: add info re percentage in <img> for idea contributed by Roberto Alsina <ralsina@netmanagers.com.ar>
src/reportlab/platypus/paragraph.py
src/reportlab/platypus/paraparser.py
--- a/src/reportlab/platypus/paragraph.py	Wed Sep 08 13:36:54 2010 +0000
+++ b/src/reportlab/platypus/paragraph.py	Wed Sep 08 15:11:10 2010 +0000
@@ -803,6 +803,8 @@
         <unichar name="unicode character name"/>
         <unichar value="unicode code point"/>
         <img src="path" width="1in" height="1in" valign="bottom"/>
+                width="w%" --> fontSize*w/100   idea from Roberto Alsina
+                height="h%" --> linewidth*h/100 <ralsina@netmanagers.com.ar>
 
         The whole may be surrounded by <para> </para> tags
 
--- a/src/reportlab/platypus/paraparser.py	Wed Sep 08 13:36:54 2010 +0000
+++ b/src/reportlab/platypus/paraparser.py	Wed Sep 08 15:11:10 2010 +0000
@@ -536,6 +536,8 @@
 #       <unichar name="unicode character name"/>
 #       <unichar value="unicode code point"/>
 #       <img src="path" width="1in" height="1in" valign="bottom"/>
+#               width="w%" --> fontSize*w/100   idea from Roberto Alsina
+#               height="h%" --> linewidth*h/100 <ralsina@netmanagers.com.ar>
 #       <greek> - </greek>
 #
 #       The whole may be surrounded by <para> </para> tags