* src/docgen/OpenOfficeDoc.py (_write_styles_file): Switch paragraph
alignment to "start" and "end" (was "left and "right"). * src/plugins/AncestorReport.py: Change prefixed style name ("AHN-"). Needed because HTML gets confised by ":" in the class name. * src/plugins/Ancestors.py: Likewise ("AR-"). * src/plugins/DescendReport.py: Likewise ("DR-"). * src/plugins/DetAncestralReport.py: Likewise ("DAR-"). * src/plugins/DetDescendantReport.py: Likewise ("DDR-"). * src/plugins/FtmStyleAncestors.py: Likewise ("FTA-"). * src/plugins/FtmStyleDescendants.py: Likewise ("FTD-"). * src/plugins/FamilyGroup.py: Likewise ("FGR-"). * src/plugins/CustomBookText.py: Likewise ("CBT-"). * src/plugins/SimpleBookTitle.py: Likewise ("SBT-"). * src/plugins/IndivSummary.py: Likewise ("IVS-"). * src/plugins/IndivComplete.py: Likewise ("IDS-"). svn: r1903
This commit is contained in:
@@ -88,7 +88,7 @@ class DescendantReport:
|
||||
def write_report(self):
|
||||
if self.newpage:
|
||||
self.doc.page_break()
|
||||
self.doc.start_paragraph("DR:Title")
|
||||
self.doc.start_paragraph("DR-Title")
|
||||
name = self.person.getPrimaryName().getRegularName()
|
||||
self.doc.write_text(_("Descendants of %s") % name)
|
||||
self.dump_dates(self.person)
|
||||
@@ -100,7 +100,7 @@ class DescendantReport:
|
||||
def dump(self,level,person):
|
||||
|
||||
if level != 0:
|
||||
self.doc.start_paragraph("DR:Level%d" % level)
|
||||
self.doc.start_paragraph("DR-Level%d" % level)
|
||||
self.doc.write_text("%d." % level)
|
||||
self.doc.write_text(person.getPrimaryName().getRegularName())
|
||||
self.dump_dates(person)
|
||||
@@ -291,7 +291,7 @@ def _make_default_style(default_style):
|
||||
p.set_header_level(1)
|
||||
p.set_font(f)
|
||||
p.set_description(_("The style used for the title of the page."))
|
||||
default_style.add_style("DR:Title",p)
|
||||
default_style.add_style("DR-Title",p)
|
||||
|
||||
f = TextDoc.FontStyle()
|
||||
for i in range(1,32):
|
||||
@@ -299,7 +299,7 @@ def _make_default_style(default_style):
|
||||
p.set_font(f)
|
||||
p.set_left_margin(max(10.0,float(i-1)))
|
||||
p.set_description(_("The style used for the level %d display.") % i)
|
||||
default_style.add_style("DR:Level%d" % i,p)
|
||||
default_style.add_style("DR-Level%d" % i,p)
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
Reference in New Issue
Block a user