* src/docgen/KwordDoc.py (write_text): Replace & with &amp in text.

Closes gramps-bugs-649228, finally.
(start_table): close FRAMESET tag conditionally. This prevents closing
it twice (both in end_cell and start_table). Closes 753151.


svn: r1715
This commit is contained in:
Alex Roitman 2003-06-13 03:29:15 +00:00
parent 7038679ab5
commit 597b4af2bc
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-06-12 Alex Roitman <shura@alex.neuro.umn.edu>
* src/docgen/KwordDoc.py (write_text): Replace & with &amp in text.
Closes gramps-bugs-649228, finally.
(start_table): close FRAMESET tag conditionally. This prevents closing
it twice (both in end_cell and start_table). Closes 753151.
2003-06-12 Tim Waugh <twaugh@redhat.com>
* src/docgen/OpenOfficeDoc.py: Fix typo. Prevent images from being
copied more than once.

View File

@ -1,7 +1,7 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000 Donald N. Allingham
# Copyright (C) 2000-2003 Donald N. Allingham
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@ -23,6 +23,7 @@ from latin_utf8 import latin_to_utf8
import time
import StringIO
import string
import gzip
import Errors
@ -363,6 +364,7 @@ class KwordDoc(TextDoc.TextDoc):
self.tbl= self.table_styles[style_name]
self.cell_left= (self.lmargin * 72)/ 2.54
self.tbl_width= ((self.width - self.lmargin - self.rmargin) * 72 ) / 2.54
if self.frameset_flg == 1:
self.f.write(' </FRAMESET> \n')
self.cell_row= 0
self.cell_col= 0
@ -435,6 +437,7 @@ class KwordDoc(TextDoc.TextDoc):
pass
def write_text(self,text):
text = string.replace(text,'&','&amp;'); # Must be first
self.text = self.text + text
Plugins.register_text_doc(_("KWord"),KwordDoc,1,1,1,".kwd")