[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (_prepare_floats):
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (_prepare_floats): fix type filtering regex. |
Date: |
Fri, 23 Dec 2022 13:18:08 -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 ef3faca40c * tp/Texinfo/Convert/LaTeX.pm (_prepare_floats): fix type
filtering regex.
ef3faca40c is described below
commit ef3faca40cf325d058bf0277afa313e6ea05a6a6
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Fri Dec 23 19:17:56 2022 +0100
* tp/Texinfo/Convert/LaTeX.pm (_prepare_floats): fix type filtering
regex.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/LaTeX.pm | 2 +-
tp/t/results/float/special_characters_in_float_type.pl | 10 +++++-----
3 files changed, 11 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 289233e130..4e799dfa90 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-12-23 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/LaTeX.pm (_prepare_floats): fix type filtering
+ regex.
+
2022-12-23 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/NodeNameNormalization.pm (_parse_float_type):
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index eed134fb23..34730c1ded 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -894,7 +894,7 @@ sub _prepare_floats($)
my $latex_variable_float_name = $normalized_float_type;
# note that with that transformation, some float types
# may be put together
- $latex_variable_float_name =~ s/[^a-zA-z]//g;
+ $latex_variable_float_name =~ s/[^a-zA-Z]//g;
if (exists($LaTeX_floats{lc($latex_variable_float_name)})) {
$self->{'normalized_float_latex'}->{$normalized_float_type}
= lc($latex_variable_float_name);
diff --git a/tp/t/results/float/special_characters_in_float_type.pl
b/tp/t/results/float/special_characters_in_float_type.pl
index ecea45dfa9..359ff1ea60 100644
--- a/tp/t/results/float/special_characters_in_float_type.pl
+++ b/tp/t/results/float/special_characters_in_float_type.pl
@@ -773,8 +773,8 @@
$result_converted{'latex'}->{'special_characters_in_float_type'} = '\\documentcl
\\newcommand{\\Texinfosettitle}{No Title}%
% new float for type `A < " `` ` \' \' \\aaa . --- in var\'
-\\newfloat{TexinfoFloatA```\\aaainvar}{htb}{tfl}[chapter]
-\\floatname{TexinfoFloatA```\\aaainvar}{}
+\\newfloat{TexinfoFloatAaaainvar}{htb}{tfl}[chapter]
+\\floatname{TexinfoFloatAaaainvar}{}
% style command for var in \'cmd_text\' formatting context
\\newcommand\\Texinfocommandstyletextvar[1]{{\\normalfont{}\\textsl{#1}}}%
@@ -809,14 +809,14 @@
$result_converted{'latex'}->{'special_characters_in_float_type'} = '\\documentcl
\\chapter{{chap}}
\\label{anchor:chap}%
-\\begin{TexinfoFloatA```\\aaainvar}
+\\begin{TexinfoFloatAaaainvar}
F
\\caption{float A < " `` ` \' \' \\textbackslash{}aaa \\@. ---
\\Texinfocommandstyletextvar{in var}}
\\label{anchor:L-_003c-_0022-_0060_0060-_0060-_0027-_0027-_005caaa-_002e-_002d_002d_002d-in-var}%
-\\end{TexinfoFloatA```\\aaainvar}
+\\end{TexinfoFloatAaaainvar}
-\\listof{TexinfoFloatA```\\aaainvar}{}
+\\listof{TexinfoFloatAaaainvar}{}
\\end{document}
';
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/LaTeX.pm (_prepare_floats): fix type filtering regex.,
Patrice Dumas <=