This commit is contained in:
Jean-Francois Dockes 2012-10-04 08:21:54 +02:00
parent 2807fa3c18
commit 2bb14cc6ff

View File

@ -86,21 +86,17 @@ else
fi fi
# output the result # output the result
echo '<html><head>' cat <<EOF
#echo '<title>' "$title" '</title>' <html><head>
echo '<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">' <meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
echo '</head><body>' </head><body><pre>
echo '<pre>' EOF
#untex -giso -a "$infile" | \
$CMD "$infile" | \ $CMD "$infile" | \
iconv -c -f iso-8859-1 -t utf-8 | \ iconv -c -f iso-8859-1 -t utf-8 | \
sed \ sed -e 's/</&lt;/g' -e 's/&/&amp;/g'
-e 's/</&lt;/g' -e 's/&/&amp;/g'
echo '</pre>' echo '</pre></body></html>'
echo '</body></html>'
# exit normally # exit normally
exit 0 exit 0