From 37063335feb3a93f36e664632420fa344b08ae70 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Wed, 4 Mar 2009 22:31:10 +0000 Subject: [PATCH] Bug #2768: .rtf report disrespects DDR-FirstEntry style svn: r12215 --- src/plugins/docgen/RTFDoc.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/plugins/docgen/RTFDoc.py b/src/plugins/docgen/RTFDoc.py index 43a84da28..65b0d8d95 100644 --- a/src/plugins/docgen/RTFDoc.py +++ b/src/plugins/docgen/RTFDoc.py @@ -3,6 +3,7 @@ # # Copyright (C) 2000-2006 Donald N. Allingham # Copyright (C) 2007-2008 Brian G. Matherly +# Copyright (C) 2009 Gary Burton # # 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 @@ -204,6 +205,8 @@ class RTFDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc): self.f.write('\\tx%d' % twips(p.get_left_margin())) self.f.write('{%s ' % self.font_type) self.write_text(leader) + self.f.write(self.text) + self.text = "" self.f.write('\\tab}') self.opened = 0 @@ -254,6 +257,8 @@ class RTFDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc): #-------------------------------------------------------------------- def end_bold(self): self.opened = 0 + self.f.write(self.text) + self.text = "" self.f.write('}') def start_superscript(self):