2007-04-11 Don Allingham <don@gramps-project.org>
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.write_source_ref): replace newlines with semicolons on output. svn: r8378
This commit is contained in:
parent
0408153557
commit
28dc889abb
@ -1,3 +1,7 @@
|
|||||||
|
2007-04-11 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/GrampsDb/_WriteGedcom.py (GedcomWriter.write_source_ref): replace
|
||||||
|
newlines with semicolons on output.
|
||||||
|
|
||||||
2007-04-10 Don Allingham <don@gramps-project.org>
|
2007-04-10 Don Allingham <don@gramps-project.org>
|
||||||
* src/GrampsDb/_ReadGedcom.py: add hack to force illegal "BET ABT" to be read
|
* src/GrampsDb/_ReadGedcom.py: add hack to force illegal "BET ABT" to be read
|
||||||
as "EST BET"
|
as "EST BET"
|
||||||
|
@ -1388,7 +1388,7 @@ class GedcomWriter(UpdateCallback):
|
|||||||
# Reference to the source
|
# Reference to the source
|
||||||
self.writeln("%d SOUR @%s@" % (level,src.get_gramps_id()))
|
self.writeln("%d SOUR @%s@" % (level,src.get_gramps_id()))
|
||||||
if ref.get_page() != "":
|
if ref.get_page() != "":
|
||||||
page_text = self.cnvtxt(ref.get_page())
|
page_text = self.cnvtxt(ref.get_page().replace('\n',' ; '))
|
||||||
self.writeln('%d PAGE %s' % (level+1,page_text))
|
self.writeln('%d PAGE %s' % (level+1,page_text))
|
||||||
conf = ref.get_confidence_level()
|
conf = ref.get_confidence_level()
|
||||||
# Cap the maximum level
|
# Cap the maximum level
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from cStringIO import StringIO
|
from cStringIO import StringIO
|
||||||
|
from xml.sax.saxutils import escape
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -395,7 +396,6 @@ class ManagedWindow:
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
def set_titles(window,title,t,msg=None):
|
def set_titles(window,title,t,msg=None):
|
||||||
if title:
|
if title:
|
||||||
print escape(t)
|
|
||||||
title.set_text('<span weight="bold" size="larger">%s</span>' % escape(t))
|
title.set_text('<span weight="bold" size="larger">%s</span>' % escape(t))
|
||||||
title.set_use_markup(True)
|
title.set_use_markup(True)
|
||||||
if msg:
|
if msg:
|
||||||
|
Loading…
Reference in New Issue
Block a user