summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-12-15 03:59:38 +0000
committerTommy Reynolds <Tommy.Reynolds@MegaCoder.com>2005-12-15 03:59:38 +0000
commitca36f0683da1754f68371c09171dca381e955c99 (patch)
tree673708c2c8746ce4a789a701c65bd198ad79a69c /bin
parentbb85e5a95d95ffdc2990c94f60fe1d576995d7a9 (diff)
downloadfedora-doc-utils-ca36f0683da1754f68371c09171dca381e955c99.tar.gz
fedora-doc-utils-ca36f0683da1754f68371c09171dca381e955c99.tar.xz
fedora-doc-utils-ca36f0683da1754f68371c09171dca381e955c99.zip
Ignore <!ENTITY> elements for now.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/xmlpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/xmlpp b/bin/xmlpp
index 3de854a..7ab83ef 100755
--- a/bin/xmlpp
+++ b/bin/xmlpp
@@ -7,7 +7,7 @@
# for more information.
#
-# $Revision: 1.1 $
+# $Revision: 1.2 $
#
# xmlpp: XML pretty printing
#
@@ -128,6 +128,7 @@ do {
parsePI("$1\n");
} elsif ($input =~ s/^(<\!DOCTYPE[^\[>]*(\[[^\]]*\])?[^>]*>)(.*)$/$3/s) {
parseDoctype("$1");
+ } elsif ($input =~ s/^(<\!ENTITY.*>)//s) {
} else {
last;
}