Menu

#2 line ended with a backslash followed by a newline

open
nobody
None
5
2006-08-29
2006-08-29
Loïc FEJOZ
No

* Rtf2Parser.py - line 70.

I had the situation where a line was ended with a
backslash followed by a newline and this was throwing
an RTF exception. It might not be legal RTF, but there
is a great quantity of RTF in our database that looks
that way. I just decided to translant the backslash
following by a newline into a break in HTML.

elif char == '\n': # Added by Hubert Hickman
self.putChar('<br/>')
self.state = plaintext

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.