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) <@ti


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/Convert/Plaintext.pm (_convert) <@tie>: Use add_next instead of add_text to add space, and do not use 'w' formatter stack or call set_space_protection.
Date: Sat, 10 Dec 2022 16:59:12 -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 12ba57d5f0 * tp/Texinfo/Convert/Plaintext.pm (_convert) <@tie>: Use 
add_next instead of add_text to add space, and do not use 'w' formatter stack 
or call set_space_protection.
12ba57d5f0 is described below

commit 12ba57d5f08a52e0418783a247240396c96a532c
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Dec 10 21:58:42 2022 +0000

    * tp/Texinfo/Convert/Plaintext.pm (_convert) <@tie>:
    Use add_next instead of add_text to add space, and do not
    use 'w' formatter stack or call set_space_protection.
---
 ChangeLog                       | 6 ++++++
 tp/Texinfo/Convert/Plaintext.pm | 8 +-------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 24474eec17..3d56eb10c8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-12-10  Gavin Smith  <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/Convert/Plaintext.pm (_convert) <@tie>:
+       Use add_next instead of add_text to add space, and do not
+       use 'w' formatter stack or call set_space_protection.
+
 2022-12-10  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert_argument_and_end_line)
diff --git a/tp/Texinfo/Convert/Plaintext.pm b/tp/Texinfo/Convert/Plaintext.pm
index 613a726d59..3879948b42 100644
--- a/tp/Texinfo/Convert/Plaintext.pm
+++ b/tp/Texinfo/Convert/Plaintext.pm
@@ -1845,14 +1845,8 @@ sub _convert($$)
                     add_next($formatter->{'container'}, $text));
         add_end_sentence($formatter->{'container'}, 1);
       } elsif ($command eq 'tie') {
-        $formatter->{'w'}++;
-        set_space_protection($formatter->{'container'}, 1, undef)
-          if ($formatter->{'w'} == 1);
         $result .= _count_added($self, $formatter->{'container'}, 
-                       add_text($formatter->{'container'}, $text));
-        $formatter->{'w'}--;
-        set_space_protection($formatter->{'container'}, 0, undef)
-          if ($formatter->{'w'} == 0);
+                       add_next($formatter->{'container'}, $text));
       } else {
         $result .= _count_added($self, $formatter->{'container'}, 
                        add_text($formatter->{'container'}, $text));



reply via email to

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