texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/Text.pm (convert_to_text): d


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/Text.pm (convert_to_text): define $options if they do not already exist.
Date: Sun, 22 Oct 2023 13:22:35 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 3fef08162e * tp/Texinfo/Convert/Text.pm (convert_to_text): define 
$options if they do not already exist.
3fef08162e is described below

commit 3fef08162e7ac169af78dd5df275a4eae0713bff
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Oct 22 19:22:36 2023 +0200

    * tp/Texinfo/Convert/Text.pm (convert_to_text): define $options if
    they do not already exist.
---
 ChangeLog                  | 5 +++++
 tp/Texinfo/Convert/Text.pm | 1 +
 tp/Texinfo/Document.pm     | 3 +++
 3 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index f872f99085..2304e887da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-22  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/Text.pm (convert_to_text): define $options if
+       they do not already exist.
+
 2023-10-22  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/ParserNonXS.pm (_end_line_misc_line)
diff --git a/tp/Texinfo/Convert/Text.pm b/tp/Texinfo/Convert/Text.pm
index cb097fceef..30f579ffbf 100644
--- a/tp/Texinfo/Convert/Text.pm
+++ b/tp/Texinfo/Convert/Text.pm
@@ -478,6 +478,7 @@ sub convert_to_text($;$)
   # this is needed for locate_include_file which uses
   # $configurations_information->get_conf() and thus requires a blessed
   # reference.
+  $options = {} if (!defined($options));
   if (defined($options)) {
     bless $options;
     if ($options->{'code'}) {
diff --git a/tp/Texinfo/Document.pm b/tp/Texinfo/Document.pm
index d52f300f99..5fe7fbb88e 100644
--- a/tp/Texinfo/Document.pm
+++ b/tp/Texinfo/Document.pm
@@ -23,6 +23,9 @@ package Texinfo::Document;
 use strict;
 use warnings;
 
+# To check if there is no erroneous autovivification
+#no autovivification qw(fetch delete exists store strict);
+
 use Texinfo::Common;
 
 use Texinfo::StructTransf;



reply via email to

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