* src/plugins/NavWebPage.py (display_note_object,

ContactPage.__init__, display_spouse): Do not treat linebreaks in
the preformatted notes; (IndividualPage.__init__): restrict notes,
url list, and source on living people.


svn: r5493
This commit is contained in:
Alex Roitman 2005-12-07 05:09:24 +00:00
parent b258b2ca85
commit 74133275e9
2 changed files with 12 additions and 7 deletions

View File

@ -1,6 +1,10 @@
2005-12-06 Alex Roitman <shura@gramps-project.org>
* src/gramps.glade (date_edit): Allow negative year integers.
* src/po/nl.po: Correct %s mismatches.
* src/plugins/NavWebPage.py (display_note_object,
ContactPage.__init__, display_spouse): Do not treat linebreaks in
the preformatted notes; (IndividualPage.__init__): restrict notes,
url list, and source on living people.
2005-12-06 Jérôme Rapinat <romjerome@yahoo.fr>
* src/po/fr.po: Partial translation update.

View File

@ -399,7 +399,7 @@ class BasePage:
of.write('<div id="narrative">\n')
of.write('<h4>%s</h4>\n' % _('Narrative'))
if format:
text = u"<pre>" + u"<br />".join(text.split("\n"))+u"</pre>"
text = u"<pre>%s</pre>" % text
else:
text = u"</p><p>".join(text.split("\n"))
of.write('<p>%s</p>\n' % text)
@ -1308,7 +1308,7 @@ class ContactPage(BasePage):
text = nobj.get()
if format:
text = u"<pre>" + u"<br />".join(text.split("\n"))+u"</pre>"
text = u"<pre>%s</pre>" % text
else:
text = u"</p><p>".join(text.split("\n"))
of.write('<p>%s</p>\n' % text)
@ -1877,8 +1877,9 @@ class IndividualPage(BasePage):
format = nobj.get_format()
text = nobj.get()
if format:
of.write( u"<pre>" + u"<br />".join(text.split("\n"))+u"</pre>")
else: of.write( u"</p><p>".join(text.split("\n")))
of.write( u"<pre>%s</pre>" % text
else:
of.write( u"</p><p>".join(text.split("\n")))
of.write('</td>\n</tr>\n')
def pedigree_person(self,of,person,is_spouse=False):