Paul, The issue I ran into was the the bold, underline etc was getting turned on, but it would not turn off at the end of a word until the end of the paragraph.
Thanks, Larry > -----Original Message----- > From: [email protected] > [mailto:[email protected]] On Behalf Of Paul McNett > Sent: Wednesday, July 22, 2009 2:46 PM > To: Dabo Users list > Subject: Re: [dabo-users] XMLtoDict.py (ReportWriter) > > Hmm... I've never seen any issues and I use the <b>bold</b> > tag all the time. But I also don't see any potential trouble > applying your change, so I'll do it later. > > Paul > > > [email protected] wrote: > > Paul and/or Ed, > > > > I suggest the following change to xmltodict.py for the following > > reason, the < gets converted to < but > does not change > to >. > > which is apparently causing problems when I am trying to embed font > > mods (bold, underline, > > italic) in my reports. After making the changes to my > xmltodict.py, > > it seems to fix the issue. > > > > Thanks, > > Larry > > > > Index: xmltodict.py > > =================================================================== > > --- xmltodict.py (revision 5299) > > +++ xmltodict.py (working copy) > > @@ -146,7 +146,8 @@ > > def CharacterData(self, data): > > """SAX character data event handler""" > > if self._inCode or data.strip(): > > - data = data.replace("<", "<") > > + data = data.replace("<", "<").replace(">",">") > > + > > data = data #.encode() > > if self._inCode: > > if self._mthdCode: > > @@ -296,7 +297,7 @@ > > else: > > ret += ">" > > if dct.has_key("cdata"): > > - ret += "%s" % dct["cdata"].replace("<", "<") > > + ret += "%s" % dct["cdata"].replace("<", "<").replace(">", > > + ">") > > > > if dct.has_key("code"): > > if len(dct["code"].keys()): > > > > > > > > --- StripMime Report -- processed MIME parts --- > multipart/alternative > > text/plain (text body -- kept) > > text/html > > --- > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/!~!uenerkvcmdkaaqacaaaaaaaaaaaaaaaaabgaaaaaaaaaafa2fnyupuomnfpiynbeqckaaaaqaaaadfg5wkhwu0m6a6ncjfa6bgeaa...@charter.net
