summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2010-10-10 17:33:53 +0000
committerRuss Allbery <eagle@eyrie.org>2010-10-10 17:33:53 +0000
commit786b30952b96cc165e71c24c1d9b93c4da2fe066 (patch)
tree9a37052f869e9812f3eee601bf2d30f3d3782498 /bin
parentf95c170a04a8cc9daeafa50e5beff13c666ced0f (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-xbin/spin3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/spin b/bin/spin
index e4e6b59..e595f6c 100755
--- a/bin/spin
+++ b/bin/spin
@@ -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.