Re: [pygtk] TextBuffer to Markup

2011-02-16 Thread Giuseppe Penone
I implemented a class for my application CherryTree that does exactly what you asked for, take a look at: http://code.google.com/p/giuspen-cherrytree/source/browse/modules/exports.py hth, cheers, Giuseppe. On Wed, Feb 16, 2011 at 6:05 PM, Bradlee Landis wrote: > Is there an easy way to convert

Re: [pygtk] TextBuffer to Markup

2011-02-16 Thread Bradlee Landis
On Wed, Feb 16, 2011 at 11:16 AM, Dieter Verfaillie wrote: > On 16/02/2011 18:05, Bradlee Landis wrote: >> Is there an easy way to convert from a TextBuffer to the Pango Markup >> Language? I can't seem to find it, even though it seems like it would >> be a desired feature by at least a few people

Re: [pygtk] TextBuffer to Markup

2011-02-16 Thread Dieter Verfaillie
On 16/02/2011 18:05, Bradlee Landis wrote: > Is there an easy way to convert from a TextBuffer to the Pango Markup > Language? I can't seem to find it, even though it seems like it would > be a desired feature by at least a few people. > > I need to save the data inside an XML document, with forma

[pygtk] TextBuffer to Markup

2011-02-16 Thread Bradlee Landis
Is there an easy way to convert from a TextBuffer to the Pango Markup Language? I can't seem to find it, even though it seems like it would be a desired feature by at least a few people. I need to save the data inside an XML document, with formatting intact, and so I was just going to use the Pang