dabo Commit
Revision 7275
Date: 2012-10-09 21:18:56 -0700 (Tue, 09 Oct 2012)
Author: Paul
Trac: http://trac.dabodev.com/changeset/7275
Changed:
U trunk/dabo/lib/reportWriter.py
Log:
This should get indenting of the first line in each paragraph working for Memo
objects, but I haven't tested it.
Diff:
Modified: trunk/dabo/lib/reportWriter.py
===================================================================
--- trunk/dabo/lib/reportWriter.py 2012-10-09 19:25:02 UTC (rev 7274)
+++ trunk/dabo/lib/reportWriter.py 2012-10-10 04:18:56 UTC (rev 7275)
@@ -951,6 +951,8 @@
to get the same relative spacing.
""")
+ self.AvailableProps["FirstLineIndent"] = toPropDict(float, 0,
+ """Specifies the extra amount to indent for the
first line in each paragraph.""")
class Image(Drawable):
@@ -1909,12 +1911,12 @@
if isinstance(fobject, (Memo, Paragraph)):
s.leading = getFloatLeading(fobject)
+ s.firstLineIndent =
fobject.getProp("firstLineIndent")
if isinstance(fobject, Paragraph):
# I ditched these props in Memo:
s.spaceAfter =
fobject.getProp("spaceAfter")
s.spaceBefore =
fobject.getProp("spaceBefore")
s.leftIndent =
fobject.getProp("leftIndent")
- s.firstLineIndent =
fobject.getProp("firstLineIndent")
paras = expr.splitlines()
prior_para = ""
for idx, para in enumerate(paras):
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]