diff options
author | Russ Allbery <eagle@eyrie.org> | 2010-10-10 17:33:53 +0000 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2010-10-10 17:33:53 +0000 |
commit | 786b30952b96cc165e71c24c1d9b93c4da2fe066 (patch) | |
tree | 9a37052f869e9812f3eee601bf2d30f3d3782498 /bin | |
parent | f95c170a04a8cc9daeafa50e5beff13c666ced0f (diff) |
Fix a bug in processing the output from external converters that caused
the <body> tag to be duplicated in the resulting output.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/spin | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -1188,12 +1188,11 @@ sub run_converter { last; } } - print OUT $_ if defined; warn "$0: malformed HTML output from $command\n" unless @page; # Snarf input and write it to output until we see </body>, which is our # signal to start adding things. We just got very confused if </body> was - # on the same line as <html>, so don't do that. + # on the same line as <body>, so don't do that. print OUT $_ while (defined ($_ = shift @page) && !m%</body>%i); # Add the footer and finish with the output. |