From: dbs Date: Mon, 21 Jan 2008 02:49:29 +0000 (+0000) Subject: Teach dtd2js.pl to ignore comments. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=3f6aa098b289824972128be1a9b764b096eb0bba;p=Evergreen.git Teach dtd2js.pl to ignore comments. git-svn-id: svn://svn.open-ils.org/ILS/trunk@8443 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/external/dtd2js.pl b/Open-ILS/xul/staff_client/external/dtd2js.pl index d7ee4e477b..6894bf01bd 100755 --- a/Open-ILS/xul/staff_client/external/dtd2js.pl +++ b/Open-ILS/xul/staff_client/external/dtd2js.pl @@ -12,7 +12,9 @@ while( $line = <> ) { if ($line =~ /\s*$/) { print "entities['$1'] = $2;\n"; - } else { + } elsif ($line =~ /^\s*\s*$/) { + # Ignore comments + } else { chomp $line; if ($line) { print STDERR "Problem with: $line\n"; } }