[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/HTML.pm (%defaults, _convert
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/HTML.pm (%defaults, _convert_xref_commands), tp/Texinfo/Common.pm (@variable_string_settables), doc/texinfo.texi (@node HTML Customization Variables): add customization variable NO_CUSTOM_HTML_ATTRIBUTE in order not to output HTML with custom attributes in elements if set. Report from Kurt Hornik. |
Date: |
Thu, 16 Dec 2021 15:27:26 -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 cbce0c0 * tp/Texinfo/Convert/HTML.pm (%defaults,
_convert_xref_commands), tp/Texinfo/Common.pm (@variable_string_settables),
doc/texinfo.texi (@node HTML Customization Variables): add customization
variable NO_CUSTOM_HTML_ATTRIBUTE in order not to output HTML with custom
attributes in elements if set. Report from Kurt Hornik.
cbce0c0 is described below
commit cbce0c098353451c0a35d740ba503ba124621272
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Dec 16 21:27:15 2021 +0100
* tp/Texinfo/Convert/HTML.pm (%defaults, _convert_xref_commands),
tp/Texinfo/Common.pm (@variable_string_settables),
doc/texinfo.texi (@node HTML Customization Variables): add
customization variable NO_CUSTOM_HTML_ATTRIBUTE in order not
to output HTML with custom attributes in elements if set.
Report from Kurt Hornik.
---
ChangeLog | 9 +++++++++
doc/texinfo.texi | 3 +++
tp/Texinfo/Common.pm | 1 +
tp/Texinfo/Convert/HTML.pm | 9 ++++++---
4 files changed, 19 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2cbe6c8..28221fd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2021-12-16 Patrice Dumas <pertusus@free.fr>
+ * tp/Texinfo/Convert/HTML.pm (%defaults, _convert_xref_commands),
+ tp/Texinfo/Common.pm (@variable_string_settables),
+ doc/texinfo.texi (@node HTML Customization Variables): add
+ customization variable NO_CUSTOM_HTML_ATTRIBUTE in order not
+ to output HTML with custom attributes in elements if set.
+ Report from Kurt Hornik.
+
+2021-12-16 Patrice Dumas <pertusus@free.fr>
+
* tp/Texinfo/Convert/HTML.pm (_convert_multitable_body_type),
tp/init/html32.pm (html32_convert_multitable_body_type):
convert multitable_body type as tbody. Report from Kurt Hornik.
diff --git a/doc/texinfo.texi b/doc/texinfo.texi
index 2c833da..4943472 100644
--- a/doc/texinfo.texi
+++ b/doc/texinfo.texi
@@ -16336,6 +16336,9 @@ by default, but only relevant when the output is not
split.
@item NO_CSS
Do not use CSS; default false. @xref{HTML CSS}.
+@item NO_CUSTOM_HTML_ATTRIBUTE
+Do not output HTML with custom attributes in elements; default false.
+
@item PRE_ABOUT
Used when an About element is output. If set to a text string,
this text will appear at the beginning of the About element. If set
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index fbb70c9..2eb67dd 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -311,6 +311,7 @@ my @variable_string_settables = (
'MENU_SYMBOL',
'MONOLITHIC',
'NO_CSS',
+'NO_CUSTOM_HTML_ATTRIBUTE',
'NODE_FILE_EXTENSION',
'NODE_NAME_IN_INDEX',
'NODE_NAME_IN_MENU',
diff --git a/tp/Texinfo/Convert/HTML.pm b/tp/Texinfo/Convert/HTML.pm
index e63bf12..5edde1d 100644
--- a/tp/Texinfo/Convert/HTML.pm
+++ b/tp/Texinfo/Convert/HTML.pm
@@ -1026,8 +1026,8 @@ my %defaults = (
'INLINE_CSS_STYLE' => 0,
# if set, no css is used.
'NO_CSS' => 0,
- 'JS_WEBLABELS' => 'generate',
- 'JS_WEBLABELS_FILE' => 'js_licenses.html', # no clash with node name
+ 'JS_WEBLABELS' => 'generate',
+ 'JS_WEBLABELS_FILE' => 'js_licenses.html', # no clash with node name
'OPEN_QUOTE_SYMBOL' => '‘',
'CLOSE_QUOTE_SYMBOL' => '’',
'USE_ISO' => 1,
@@ -1048,6 +1048,7 @@ my %defaults = (
'XREF_USE_NODE_NAME_ARG' => undef,
'XREF_USE_FLOAT_LABEL' => 0,
'OVERVIEW_LINK_TO_TOC' => 1,
+ 'NO_CUSTOM_HTML_ATTRIBUTE' => 0,
'COMPLEX_FORMAT_IN_TABLE' => 0,
'WORDS_IN_PAGE' => 300,
# _default_panel_button_dynamic_direction use nodes direction based on
USE_NODE_DIRECTIONS
@@ -3713,7 +3714,9 @@ sub _convert_xref_commands($$$$)
# and to provide manual name of target
my $attribute = '';
if ($file) {
- $attribute = "data-manual=\"".$self->protect_text($file)."\" ";
+ if (not $self->get_conf('NO_CUSTOM_HTML_ATTRIBUTE')) {
+ $attribute = "data-manual=\"".$self->protect_text($file)."\" ";
+ }
}
if ($name ne '') {
$reference = "<a ${attribute}href=\"$href\">$name</a>";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/HTML.pm (%defaults, _convert_xref_commands), tp/Texinfo/Common.pm (@variable_string_settables), doc/texinfo.texi (@node HTML Customization Variables): add customization variable NO_CUSTOM_HTML_ATTRIBUTE in order not to output HTML with custom attributes in elements if set. Report from Kurt Hornik.,
Patrice Dumas <=