entity fix

This commit is contained in:
gferg 2002-01-18 13:57:44 +00:00
parent 09c3998dc8
commit 5a34b9c1f3
3 changed files with 10 additions and 7 deletions

View File

@ -3,7 +3,7 @@
ldp_print - print tool/script for DocBook SGML/XML documents
######################################################################
Copyright (C) 2001-2000 - Greg Ferguson (gferg@metalab.unc.edu)
Copyright (C) 2002-2000 - Greg Ferguson (gferg@metalab.unc.edu)
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by

View File

@ -1 +1 @@
0.5, 2001-11-27
0.5.1, 2002-01-18

View File

@ -8,11 +8,12 @@
# thru htmldoc.
#
# log:
# 16Oct2000 - 0.1 - initial entry <gferg (at) sgi.com>
# 03Apr2001 - 0.2 - fix for <preface>
# 05Jul2001 - 0.3 - fix for <tt> and -f
# 12Oct2001 - 0.4 - fix for sections; loop thru both files (body/title)
# 27Nov2001 - 0.5 - fixed bug in determining where doc-index lies
# 16Oct2000 - 0.1 - initial entry <gferg (at) sgi.com>
# 03Apr2001 - 0.2 - fix for <preface>
# 05Jul2001 - 0.3 - fix for <tt> and -f
# 12Oct2001 - 0.4 - fix for sections; loop thru both files (body/title)
# 27Nov2001 - 0.5 - fixed bug in determining where doc-index lies
# 18Jan2002 - 0.5.1 - entity fix (822*)
#
sub fix_print_html {
@ -140,6 +141,8 @@ sub fix_html {
$$buf =~ s/\&\#60;/\&lt;/g;
$$buf =~ s/\&\#62;/\&gt;/g;
$$buf =~ s/\&\#8211;/\-/g;
$$buf =~ s/\&\#8220;/\"/g;
$$buf =~ s/\&\#8221;/\"/g;
$$buf =~ s/WIDTH=\"\d\"//g;
$$buf =~ s/><[\/]*TBODY//g;
$$buf =~ s/><[\/]*THEAD//g;