Red Hat Bugzilla – Bug 46913
db2html --nochunks will not generate a valid HTML file
Last modified: 2008-05-01 11:38:00 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010628
Description of problem:
When using the "--nochunks" option on db2html, the HTML is written to
standard out. However, output from the tool is also written to standard
out and is mixed in with the HTML. This generates an invalid HTML
document. Ideally, the HTML would not be written to standard out and
written to a file by db2html. As an alternative the tool output should be
written to standard error instead of standard out. Thus redirection will
only grab the HTML.
Steps to Reproduce:
1. db2html --nochunks some-document.sgml > some-document.html
Actual Results: The resulting file "document.html" contains output from
the tool and thus is not a valid HTML file. Specifically, look at the
first 4 lines and last line of the file.
Expected Results: The output from the tool should not be included in the
HTML. They should be written to standard error or something similar to
allow only the generated HTML to be written to the file.
I have reported this to the upstream maintainer to see which fix would be
preferred (output to a file, I imagine).
Created attachment 22587 [details]
Patch to send output to a file
Fixed in 0.6.9-1.