texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Fri, 18 Feb 2022 19:52:37 -0500 (EST)

branch: master
commit 66da52c289447b26e4f382f66569b4e071d27aed
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Feb 19 01:44:20 2022 +0100

    util/txixml2texi.pl: pass XML::LibXML::Reader options as an hash reference
---
 util/txixml2texi.pl | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/util/txixml2texi.pl b/util/txixml2texi.pl
index 074a247e78..cfe91af133 100755
--- a/util/txixml2texi.pl
+++ b/util/txixml2texi.pl
@@ -177,9 +177,12 @@ if (!defined($infile) or $infile !~ /\S/) {
   die "Missing file\n";
 }
 
-my $reader = XML::LibXML::Reader->new('location' => $infile,
-                                       'expand_entities' => 0,
-                                    )
+my $reader_options = {'location' => $infile,
+                      'expand_entities' => 0,
+                      'pedantic_parser' => $debug,
+                      #'validation' => 1,
+                     };
+my $reader = XML::LibXML::Reader->new($reader_options)
        or die "cannot read $infile\n";
 
 #(my $mydir = $0) =~ s,/[^/]*$,,;  # dir we are in



reply via email to

[Prev in Thread] Current Thread [Next in Thread]