[pygtk] quoting text for markup
Walter Leibbrandt
walter at translate.org.za
Thu Mar 19 16:59:35 WST 2009
Hi
Darren Hart wrote:
> When adding text with an & character to a cellrenderertext I get some
> rendering glitches (and the actual text doesn't get rendered at all).
> Is there a standard mechanism for quoting text destined for the markup
> property?
Since Pango markup strings are XML strings, you should also quote your
markup strings as such. That means that an & should become &.
HTH,
--
Walter Leibbrandt Software Developer
Recent blogs:
* Firefox-style button with a pop-up menu
http://www.translate.org.za/blogs/walter/en/content/firefox-style-button-pop-menu
More information about the pygtk
mailing list