teambob / docfrac

DocFrac is a document converter that can convert between RTF, HTML and ASCII text. This includes RTF to HTML and HTML to RTF. Supports text formatting (e.g. bold); tables; and most European languages. Available for Windows; Linux; ActiveX and DLL.
GNU General Public License v2.0
13 stars 6 forks source link

[Bug] Plain text ampersand + number sign = crash [sf#17] #39

Closed teambob closed 9 years ago

teambob commented 9 years ago

*Reported by anonymous on 2006-10-30 00:27 UTC** A plain text ampersand (and sign) followed immediately by a number sign, but not followed by numbers will cause 3.1.3 to crash with an Unknown Error message. (Apparently it's treating it as HTML code and is expecting ASCII number codes, but in this case the desired output is simply an ampersand followed by a number sign.)

A potential workaround: Replace the plain text ampersands with the ampersand HTML code and the crash shouldn't happen. (Since the & and # will be seperated.)

teambob commented 9 years ago

Commented by andrewpunch on 2006-11-11 23:13 UTC Logged In: YES user_id=928005

This bug is fixed in 3.1.4. Please let me know if it needs to be reopened.

The problem occured when converting FROM text. The text reader was copied from the html reader and this code was accidently left in.

teambob commented 9 years ago

Updated by andrewpunch on 2006-11-11 23:13 UTC

teambob commented 9 years ago

Commented by andrewpunch on 2006-11-11 23:15 UTC Logged In: YES user_id=928005

The version this occured in is 3.1.3

teambob commented 9 years ago

Updated by andrewpunch on 2006-11-11 23:15 UTC