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 (html_get_css_elemen


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/Convert/HTML.pm (html_get_css_elements_classes) (%default_css_element_class_styles): remove unused %css_rules_not_collected.
Date: Tue, 01 Oct 2024 13:34:41 -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 5aa3619ad3 * tp/Texinfo/Convert/HTML.pm 
(html_get_css_elements_classes) (%default_css_element_class_styles): remove 
unused %css_rules_not_collected.
5aa3619ad3 is described below

commit 5aa3619ad34bbe9fae98fd946bd789b130d8d217
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jul 27 18:23:27 2024 +0200

    * tp/Texinfo/Convert/HTML.pm (html_get_css_elements_classes)
    (%default_css_element_class_styles): remove unused %css_rules_not_collected.
---
 ChangeLog                  |  5 +++++
 tp/Texinfo/Convert/HTML.pm | 12 ++----------
 2 files changed, 7 insertions(+), 10 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index deaabee4c5..d1397adbda 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-07-27  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/Convert/HTML.pm (html_get_css_elements_classes)
+       (%default_css_element_class_styles): remove unused 
%css_rules_not_collected.
+
 2024-10-01  Patrice Dumas  <pertusus@free.fr>
 
        update gnulib in tp/Texinfo/XS
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index 2461d36b55..63dacf5a20 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -458,21 +458,15 @@ sub html_attribute_class($$;$)
   return "<$element class=\"$class_str\"$style";
 }
 
-# for rules that cannot be collected during document output since they
-# are not associated with a class attribute element setting
-my %css_rules_not_collected = (
-);
-
 # returns an array of CSS element.class seen in the $FILENAME
 sub html_get_css_elements_classes($;$)
 {
   my $self = shift;
   my $filename = shift;
 
-  my %css_elements_classes = %css_rules_not_collected;
+  my %css_elements_classes;
   if ($self->{'document_global_context_css'}) {
-    %css_elements_classes = ( %css_elements_classes,
-                              %{$self->{'document_global_context_css'}} );
+    %css_elements_classes = ( %{$self->{'document_global_context_css'}} );
   }
 
   if (defined($filename) and $self->{'page_css'}
@@ -3057,8 +3051,6 @@ sub converter_defaults($$)
 }
 
 my %default_css_element_class_styles = (
-     %css_rules_not_collected,
-
      'ul.toc-numbered-mark'   => 'list-style: none',
      'pre.menu-comment-preformatted' => 'font-family: serif',
      # using display: inline is an attempt to avoid a line break when in



reply via email to

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