* src/docgen/KwordDoc.py (write_text): Replace & with & 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:
parent
212a2d95ee
commit
dd959c379e
@ -1,3 +1,9 @@
|
|||||||
|
2003-06-12 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
|
* src/docgen/KwordDoc.py (write_text): Replace & with & 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>
|
2003-06-12 Tim Waugh <twaugh@redhat.com>
|
||||||
* src/docgen/OpenOfficeDoc.py: Fix typo. Prevent images from being
|
* src/docgen/OpenOfficeDoc.py: Fix typo. Prevent images from being
|
||||||
copied more than once.
|
copied more than once.
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# Gramps - a GTK+/GNOME based genealogy program
|
# 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
|
# 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
|
# 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 time
|
||||||
import StringIO
|
import StringIO
|
||||||
|
import string
|
||||||
import gzip
|
import gzip
|
||||||
|
|
||||||
import Errors
|
import Errors
|
||||||
@ -363,7 +364,8 @@ class KwordDoc(TextDoc.TextDoc):
|
|||||||
self.tbl= self.table_styles[style_name]
|
self.tbl= self.table_styles[style_name]
|
||||||
self.cell_left= (self.lmargin * 72)/ 2.54
|
self.cell_left= (self.lmargin * 72)/ 2.54
|
||||||
self.tbl_width= ((self.width - self.lmargin - self.rmargin) * 72 ) / 2.54
|
self.tbl_width= ((self.width - self.lmargin - self.rmargin) * 72 ) / 2.54
|
||||||
self.f.write(' </FRAMESET> \n')
|
if self.frameset_flg == 1:
|
||||||
|
self.f.write(' </FRAMESET> \n')
|
||||||
self.cell_row= 0
|
self.cell_row= 0
|
||||||
self.cell_col= 0
|
self.cell_col= 0
|
||||||
self.frameset_flg= 0
|
self.frameset_flg= 0
|
||||||
@ -435,6 +437,7 @@ class KwordDoc(TextDoc.TextDoc):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def write_text(self,text):
|
def write_text(self,text):
|
||||||
|
text = string.replace(text,'&','&'); # Must be first
|
||||||
self.text = self.text + text
|
self.text = self.text + text
|
||||||
|
|
||||||
Plugins.register_text_doc(_("KWord"),KwordDoc,1,1,1,".kwd")
|
Plugins.register_text_doc(_("KWord"),KwordDoc,1,1,1,".kwd")
|
||||||
|
Loading…
Reference in New Issue
Block a user