From: Benny M. <ben...@gm...> - 2010-02-14 07:55:29
|
2010/2/13 Benny Malengier <ben...@gm...>: > 2010/2/13 Duncan Lithgow <dun...@gm...>: >> On 13 February 2010 09:22, jerome <rom...@ya...> wrote: >>>> Anything that can be done to prevent this ? >>> >>> to change <br/> to <br></br> which is more XML compliant ! >> >> Is <br/> not good XML? does it need the opening container <br>? > > Yes, also the code checks in <br/> to make new paragraph in Gtk, so > all the rest will not work. > > As this check only checks tips.xml, and tips.xml now can contain pango > markup code, the check on < should be removed. > > Jerome, can you try to change the regex to do that? > > It is now > > xml_chars_pat = re.compile( r'(?<=\W) > | " | & > (?!(quot|nbsp|gt|amp);)', re.VERBOSE ) > > I think > > xml_chars_pat = re.compile( r'<(?!(b>|/b>|i>|/i>|br/>)) | > (?<=!(<b|/b|<i|/i|r/))> | " | & (?!(quot|nbsp|gt|amp);)', re.VERBOSE ) > I committed this, should work. If problems, let me know. Benny > > should do the trick, it will no longer fail on <b>, <i> or <br/> but > still give issues on other things that the markup will not show. It > also will let through s/b>, but I think the old one lets < through, so > not a big issue :-) > > Benny > >> >> Duncan >> -- >> 'The unconsidered life is not worth living' - Socrates >> >> ------------------------------------------------------------------------------ >> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, >> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW >> http://p.sf.net/sfu/solaris-dev2dev >> _______________________________________________ >> Gramps-devel mailing list >> Gra...@li... >> https://lists.sourceforge.net/lists/listinfo/gramps-devel >> > |