[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%ignored_commands,
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%ignored_commands, _convert): explicitly ignore errormsg. Recognize an empty string as conversion of %LaTeX_in_heading_commands_formatting commands. |
Date: |
Tue, 11 Oct 2022 17:15:32 -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 c5eb0f867d * tp/Texinfo/Convert/LaTeX.pm (%ignored_commands,
_convert): explicitly ignore errormsg. Recognize an empty string as conversion
of %LaTeX_in_heading_commands_formatting commands.
c5eb0f867d is described below
commit c5eb0f867d3f98b0afda7f8871692e65724cc28a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Oct 11 23:15:21 2022 +0200
* tp/Texinfo/Convert/LaTeX.pm (%ignored_commands, _convert):
explicitly ignore errormsg. Recognize an empty string as conversion
of %LaTeX_in_heading_commands_formatting commands.
---
ChangeLog | 6 ++++++
tp/Texinfo/Convert/DocBook.pm | 1 -
tp/Texinfo/Convert/LaTeX.pm | 4 ++--
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 18c4b51f38..a290407550 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2022-10-11 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/LaTeX.pm (%ignored_commands, _convert):
+ explicitly ignore errormsg. Recognize an empty string as conversion
+ of %LaTeX_in_heading_commands_formatting commands.
+
2022-10-11 Patrice Dumas <pertusus@free.fr>
* util/htmlxref.cnf: corrections reported by Tzvetelin Katchov.
diff --git a/tp/Texinfo/Convert/DocBook.pm b/tp/Texinfo/Convert/DocBook.pm
index 6f59761981..13e5342ce1 100644
--- a/tp/Texinfo/Convert/DocBook.pm
+++ b/tp/Texinfo/Convert/DocBook.pm
@@ -1418,7 +1418,6 @@ sub _convert($$;$)
#warn " returning empty string for ignored braced cmd\n";
return '';
}
-
# special case to ensure that @w leads to something even if empty
} elsif ($element->{'cmdname'} eq 'w') {
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index bd02e85dd8..b757be9b46 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -469,7 +469,7 @@ foreach my $accent_command (keys
%{$LaTeX_accent_commands{'cmd_math'}}) {
my %ignored_commands = (%ignored_line_commands, %ignored_nobrace_commands);
# processed as part of the index command or type formatting
foreach my $ignored_brace_commands (
- 'sortas', 'seeentry', 'seealso') {
+ 'sortas', 'seeentry', 'seealso', 'errormsg') {
$ignored_commands{$ignored_brace_commands} = 1;
}
@@ -3442,7 +3442,7 @@ sub _convert($$)
$result .= "\\needspace{${need_value}pt}%\n";
}
return $result;
- } elsif ($LaTeX_in_heading_commands_formatting{$cmdname}) {
+ } elsif (defined($LaTeX_in_heading_commands_formatting{$cmdname})) {
$result .= $LaTeX_in_heading_commands_formatting{$cmdname};
return $result;
} elsif ($cmdname eq 'title') {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%ignored_commands, _convert): explicitly ignore errormsg. Recognize an empty string as conversion of %LaTeX_in_heading_commands_formatting commands.,
Patrice Dumas <=