texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert): Ren


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert): Rename a variable.
Date: Wed, 24 Jan 2024 15:00:59 -0500

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

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 8412c4b086 * tp/Texinfo/Convert/Plaintext.pm (_convert): Rename a 
variable.
8412c4b086 is described below

commit 8412c4b0863d5735a4f212c7842deacdf80f7a09
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Jan 24 20:00:51 2024 +0000

    * tp/Texinfo/Convert/Plaintext.pm (_convert): Rename a variable.
---
 ChangeLog                       | 4 ++++
 tp/Texinfo/Convert/Plaintext.pm | 8 ++++----
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 2719fc3be0..90b3ad6049 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-01-24  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/Convert/Plaintext.pm (_convert): Rename a variable.
+
 2024-01-24  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/Convert/Info.pm (format_node): Pass return value of
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index e776963f49..70fc248764 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -2433,7 +2433,7 @@ sub _convert($$)
             _convert($self, $file);
           }
 
-          my $node_line_name;
+          my $node_name;
 
           # Get the node name to be output.
           # Due to the paragraph formatter holding pending text, converting
@@ -2446,12 +2446,12 @@ sub _convert($$)
           if ($label_element and $label_element->{'contents'}
               and scalar(@{$label_element->{'contents'}}) == 1
               and defined($label_element->{'contents'}->[0]->{'text'})) {
-            $node_line_name = $label_element->{'contents'}->[0]->{'text'};
+            $node_name = $label_element->{'contents'}->[0]->{'text'};
           } else {
             $self->{'silent'} = 0 if (!defined($self->{'silent'}));
             $self->{'silent'}++;
 
-            ($node_line_name, undef) = $self->convert_line_new_context(
+            ($node_name, undef) = $self->convert_line_new_context(
                                           {'type' => '_code',
                                            'contents' => [$label_element]},
                                           {'suppress_styles' => 1,
@@ -2467,7 +2467,7 @@ sub _convert($$)
           }
 
           my $quoting_required = 0;
-          if ($node_line_name =~ /([$check_chars])/m) {
+          if ($node_name =~ /([$check_chars])/m) {
             if ($self->{'info_special_chars_warning'}) {
               $self->plaintext_line_warn($self, sprintf(__(
                  "\@%s node name should not contain `%s'"), $command, $1),



reply via email to

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