[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 5 May 2024 12:29:25 -0400 (EDT) |
branch: master
commit de0c9a260691a83240f531f3fa74d3bd089ee1ff
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun May 5 15:54:33 2024 +0200
* tp/Texinfo/Convert/LaTeX.pm (_convert): leave content of
before_defline as is directly in top level content.
---
ChangeLog | 5 +++++
tp/Texinfo/Convert/LaTeX.pm | 6 ++----
tp/t/results/def/comment_index_before_defline.pl | 3 ---
tp/t/results/def/defblock_no_defline.pl | 3 ---
tp/t/results/def/text_block_before_defline.pl | 3 ---
5 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b93b6f0dc3..2f0ffd561a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-05-05 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/Convert/LaTeX.pm (_convert): leave content of
+ before_defline as is directly in top level content.
+
2024-05-05 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/Convert/DocBook.pm (%type_elements): leave content of
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index c655787df6..0f006832f3 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -4256,8 +4256,7 @@ sub _convert($$)
}
$result .= "\n";
$result .= _index_entry($self, $element);
- } elsif ($element->{'type'} eq 'def_item'
- or $element->{'type'} eq 'before_defline') {
+ } elsif ($element->{'type'} eq 'def_item') {
$result .= "\\begin{quote}\n";
# Remove vertical space and start paragaph, avoiding adding
# more vertical space.
@@ -4338,8 +4337,7 @@ sub _convert($$)
if ($type) {
if ($type eq '_dot_not_end_sentence') {
$self->{'formatting_context'}->[-1]->{'dot_not_end_sentence'} -= 1;
- } elsif ($type eq 'def_item'
- or $element->{'type'} eq 'before_defline') {
+ } elsif ($type eq 'def_item') {
$result .= "\\end{quote}\n";
} elsif ($type eq 'table_term') {
$result .= '}}]'."\n";
diff --git a/tp/t/results/def/comment_index_before_defline.pl
b/tp/t/results/def/comment_index_before_defline.pl
index 97ed1db8aa..faf969914b 100644
--- a/tp/t/results/def/comment_index_before_defline.pl
+++ b/tp/t/results/def/comment_index_before_defline.pl
@@ -351,11 +351,8 @@
$result_converted{'latex'}->{'comment_index_before_defline'} = '\\documentclass{
\\pagestyle{single}%
\\begin{document}
-\\begin{quote}
-\\unskip{\\parskip=0pt\\noindent}%
\\index[cp]{entry@entry}%
-\\end{quote}
\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
\\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000
diff --git a/tp/t/results/def/defblock_no_defline.pl
b/tp/t/results/def/defblock_no_defline.pl
index d0dffcc3e7..4cca9f035e 100644
--- a/tp/t/results/def/defblock_no_defline.pl
+++ b/tp/t/results/def/defblock_no_defline.pl
@@ -185,10 +185,7 @@ $result_converted{'latex'}->{'defblock_no_defline'} =
'\\documentclass{book}
\\pagestyle{single}%
\\begin{document}
-\\begin{quote}
-\\unskip{\\parskip=0pt\\noindent}%
misc text inside
-\\end{quote}
\\end{document}
';
diff --git a/tp/t/results/def/text_block_before_defline.pl
b/tp/t/results/def/text_block_before_defline.pl
index 979a515d8b..ec3e9a80f6 100644
--- a/tp/t/results/def/text_block_before_defline.pl
+++ b/tp/t/results/def/text_block_before_defline.pl
@@ -801,8 +801,6 @@ $result_converted{'latex'}->{'text_block_before_defline'} =
'\\documentclass{boo
\\chapter{{Chap}}
\\label{anchor:chapt}%
-\\begin{quote}
-\\unskip{\\parskip=0pt\\noindent}%
Some text\\footnote{In footnote}.
\\begin{Texinfoindented}
@@ -812,7 +810,6 @@ Some text\\footnote{In footnote}.
\\end{Texinfoindented}
-\\end{quote}
\\noindent\\begin{tabularx}{\\linewidth}{@{}Xr}
\\rightskip=5em plus 1 fill \\hangindent=2em \\hyphenpenalty=10000