Dieter,

I tried it and it didn't work.  I also tried replacing the GTK bundle
with the older one, and the program would not accept it.  I verified
that the TextBuffer actually does contain the newlines.  It's just
that the TextView ignores them.  Even if you have a text file that has
newlines in there to begin with, visible in Notepad so I know the line
endings are correct, the TextView seems to just compress them out.  I
verified with print statements that the lines are being added to the
buffer.

James Simmons


On Fri, Dec 10, 2010 at 5:10 AM, Dieter Verfaillie
<[email protected]> wrote:
> Quoting "James Simmons" <[email protected]>:
>>
>>
>> http://git.sugarlabs.org/e-book-making-scripts/mainline/blobs/master/proofer.py
>
> Just a thought, but try changing line 84 from
> etext_file = open(text_filename,"r") to
> etext_file = open(text_filename,"rU") and see what happens...
>
> mvg,
> Dieter
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>
>
_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to