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:
Don Allingham 2007-04-12 02:29:52 +00:00
parent 0408153557
commit 28dc889abb
3 changed files with 6 additions and 2 deletions

View File

@ -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>
* src/GrampsDb/_ReadGedcom.py: add hack to force illegal "BET ABT" to be read
as "EST BET"

View File

@ -1388,7 +1388,7 @@ class GedcomWriter(UpdateCallback):
# Reference to the source
self.writeln("%d SOUR @%s@" % (level,src.get_gramps_id()))
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))
conf = ref.get_confidence_level()
# Cap the maximum level

View File

@ -26,6 +26,7 @@
#
#-------------------------------------------------------------------------
from cStringIO import StringIO
from xml.sax.saxutils import escape
#-------------------------------------------------------------------------
#
@ -395,7 +396,6 @@ class ManagedWindow:
#-------------------------------------------------------------------------
def set_titles(window,title,t,msg=None):
if title:
print escape(t)
title.set_text('<span weight="bold" size="larger">%s</span>' % escape(t))
title.set_use_markup(True)
if msg: