texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/Convert/HTML.pm (_default_format_ele


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/HTML.pm (_default_format_element_footer) (_convert): rename cmdname as context or context_name, as contexts are not necessarily associated with command names, and it is clearer to separate.
Date: Sun, 30 Jan 2022 10:29:47 -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 2389f0f63c * tp/Texinfo/Convert/HTML.pm 
(_default_format_element_footer) (_convert): rename cmdname as context or 
context_name, as contexts are not necessarily associated with command names, 
and it is clearer to separate.
2389f0f63c is described below

commit 2389f0f63c39ee8835efb1f675755dd1c707823b
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Jan 30 16:29:37 2022 +0100

    * tp/Texinfo/Convert/HTML.pm (_default_format_element_footer)
    (_convert): rename cmdname as context or context_name, as contexts
    are not necessarily associated with command names, and it is
    clearer to separate.
---
 ChangeLog                  | 7 +++++++
 tp/Texinfo/Convert/HTML.pm | 8 ++++----
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index ede0485abc..37a371c537 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2022-01-30  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/HTML.pm (_default_format_element_footer)
+       (_convert): rename cmdname as context or context_name, as contexts
+       are not necessarily associated with command names, and it is
+       clearer to separate.
+
 2022-01-30  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Config.pm (texinfo_register_style_command_formatting),
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index f457cb527e..2b172cba5e 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -6319,12 +6319,12 @@ sub _default_format_element_footer($$$$)
 sub _new_document_context($;$$)
 {
   my $self = shift;
-  my $cmdname = shift;
+  my $context = shift;
   my $document_global_context = shift;
 
   push @{$self->{'document_context'}},
-          {'cmdname' => $cmdname,
-           'formatting_context' => [{'cmdname' => $cmdname}],
+          {'context' => $context,
+           'formatting_context' => [{'context_name' => $context}],
            'composition_context' => [''],
            'formats' => [],
            'monospace' => [0],
@@ -9815,7 +9815,7 @@ sub _convert($$;$)
       }
       if (exists($format_context_commands{$command_name})) {
         push @{$self->{'document_context'}->[-1]->{'formatting_context'}}, 
-                                              {'cmdname' => $command_name};
+                                              {'context_name' => 
'@'.$command_name};
       }
       if (exists($block_commands{$command_name})) {
         push @{$self->{'document_context'}->[-1]->{'block_commands'}}, 
$command_name;



reply via email to

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