texinfo-commits
[Top][All Lists]
Advanced

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

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


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert): use _leading_spaces_arg for def_line type.
Date: Mon, 12 Dec 2022 10:39:07 -0500

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 a2771b61e3 * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert): use 
_leading_spaces_arg for def_line type.
a2771b61e3 is described below

commit a2771b61e31cb21c8c6fb92f3848e5c86d4486ac
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Mon Dec 12 16:38:57 2022 +0100

    * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert): use
    _leading_spaces_arg for def_line type.
---
 ChangeLog                           |  5 +++++
 tp/Texinfo/Convert/TexinfoMarkup.pm | 14 +++-----------
 2 files changed, 8 insertions(+), 11 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 5d585f7372..32bb7dad3e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-12-12  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert): use
+       _leading_spaces_arg for def_line type.
+
 2022-12-12  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/TexinfoMarkup.pm (_convert), util/txixml2texi.pl:
diff --git a/tp/Texinfo/Convert/TexinfoMarkup.pm 
b/tp/Texinfo/Convert/TexinfoMarkup.pm
index 5186591e88..6a97306602 100644
--- a/tp/Texinfo/Convert/TexinfoMarkup.pm
+++ b/tp/Texinfo/Convert/TexinfoMarkup.pm
@@ -1549,18 +1549,10 @@ sub _convert($$;$)
     if ($element->{'type'} eq 'def_line') {
       if ($element->{'cmdname'}) {
         # @def*x command has the command associated with def_line.
-        my $leading_spaces_attribute_spec = [];
-        if ($element->{'info'}
-            and $element->{'info'}->{'spaces_before_argument'}
-            and $element->{'info'}->{'spaces_before_argument'} ne '') {
-          my $leading_spaces = $element->{'info'}->{'spaces_before_argument'};
-          # may happen without any argument, remove as a \n is added below
-          $leading_spaces =~ s/\n//;
-          $leading_spaces_attribute_spec = [['spaces', $leading_spaces]]
-            if ($leading_spaces ne '');
-        }
+        my $attribute = [];
+        push @$attribute, _leading_spaces_arg($element);
         $result .= $self->txi_markup_open_element($element->{'cmdname'},
-                                                  
$leading_spaces_attribute_spec);
+                                                  $attribute);
       }
       $result .= $self->txi_markup_open_element('definitionterm');
       $result .= $self->_index_entry($element);



reply via email to

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