[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (html_attribute_clas
From: |
Gavin D. Smith |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (html_attribute_class): Hard-code access to 'conf' array rather than calling get_conf. |
Date: |
Sat, 04 Jun 2022 09:50:26 -0400 |
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 94ae930e09 * tp/Texinfo/Convert/HTML.pm (html_attribute_class):
Hard-code access to 'conf' array rather than calling get_conf.
94ae930e09 is described below
commit 94ae930e09b98d7690146df12e7331a2679ce928
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Sat Jun 4 14:50:18 2022 +0100
* tp/Texinfo/Convert/HTML.pm (html_attribute_class):
Hard-code access to 'conf' array rather than calling get_conf.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/HTML.pm | 5 +++--
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 92ac7aa11e..14c40b0047 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-06-04 Gavin Smith <gavinsmith0123@gmail.com>
+
+ * tp/Texinfo/Convert/HTML.pm (html_attribute_class):
+ Hard-code access to 'conf' array rather than calling get_conf.
+
2022-06-04 Gavin Smith <gavinsmith0123@gmail.com>
* tp/Texinfo/Convert/HTML.pm (_conversion_contents):
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index a1f2d62ec4..2a3aced364 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -169,7 +169,8 @@ sub html_attribute_class($$;$)
if (defined($classes) and ref($classes) ne 'ARRAY') {
confess("html_attribute_class: $classes not an array ref (for $element)");
}
- if (!defined($classes) or scalar(@$classes) == 0 or
$self->get_conf('NO_CSS')) {
+ if (!defined($classes) or scalar(@$classes) == 0
+ or $self->{'conf'}->{'NO_CSS'}) {
if ($element eq 'span') {
return '';
} else {
@@ -179,7 +180,7 @@ sub html_attribute_class($$;$)
my $style = '';
- if ($self->get_conf('INLINE_CSS_STYLE')) {
+ if ($self->{'conf'}->{'INLINE_CSS_STYLE'}) {
my @styles = ();
foreach my $style_class (@$classes) {
if (not defined($style_class)) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (html_attribute_class): Hard-code access to 'conf' array rather than calling get_conf.,
Gavin D. Smith <=