Package: html2ps
Version: 1.0b3-4

Given malformed html, for instance one with a superfluous </ol>, html2ps 
either crashes or produces malformed postscript.

Example:
foo.html:
=====
foo </ol> bar
=====

> html2ps -D -o foo.ps foo.html

crashes with a ghostscript stack trace

> html2ps -R -o foo.ps foo.html

crashes without a ghostscript stack trace

> html2ps -o foo.ps foo.html

succeeds, but foo.ps is malformed and causes gv errors (only "foo" is shown on 
the screen, the "bar" is missing) and gs crashes.


Expected behaviour: html2ps should either render malformed html as best as 
possible, or report problems by file and line in the html.

Documented behaviour: According to /usr/share/doc/html2ps/html2ps.html 
"rendering valid documents is difficult enough, do not expect anything from 
documents with invalid syntax".


Bugs #25870, #29008, #175018 and/or #223850 may be related - the symptoms are 
similar, but without copies of the html documents, it's difficult to say.

Jiri
-- 
Jiri Baum <[EMAIL PROTECTED]>                   http://www.baum.com.au/~jiri
  MAT LinuxPLC project --- http://mat.sf.net --- Machine Automation Tools


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to