[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/Convert/LaTeX.pm: remove unused code
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/Convert/LaTeX.pm: remove unused code |
Date: |
Sat, 08 Jan 2022 05:04:29 -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 128f0b0a68 * tp/Texinfo/Convert/LaTeX.pm: remove unused code
128f0b0a68 is described below
commit 128f0b0a68b421eb00a9351456f4242dc0765352
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jan 8 11:04:02 2022 +0100
* tp/Texinfo/Convert/LaTeX.pm: remove unused code
---
tp/Texinfo/Convert/LaTeX.pm | 25 +------------------------
1 file changed, 1 insertion(+), 24 deletions(-)
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 7b9d340de4..8ff8653e1f 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -464,28 +464,6 @@ foreach my $ignored_brace_commands (
$ignored_commands{$ignored_brace_commands} = 1;
}
-my %item_indent_format_length = ('enumerate' => 2,
- 'itemize' => 3,
- 'table' => 0,
- 'vtable' => 0,
- 'ftable' => 0,
- );
-
-my $indent_length = 5;
-
-my %indented_commands;
-foreach my $indented_command (keys(%item_indent_format_length),
- keys(%preformatted_commands),
- 'indentedblock', 'smallindentedblock',
- keys(%def_commands)) {
- $indented_commands{$indented_command} = 1
- if exists($block_commands{$indented_command});
-}
-
-foreach my $non_indented('format', 'smallformat') {
- delete $indented_commands{$non_indented};
-}
-
# titlepage content is directly formatted at document begin
foreach my $ignored_block_commands ('ignore', 'macro', 'rmacro', 'copying',
'documentdescription', 'titlepage') {
@@ -2801,8 +2779,7 @@ sub _convert($$)
if ($element->{'extra'}->{'columnfractions'}) {
} elsif ($element->{'extra'}->{'prototypes'}) {
foreach my $prototype (@{$element->{'extra'}->{'prototypes'}}) {
- my ($formatted_prototype) = $self->_convert($prototype,
- {'indent_length' => 0});
+ my ($formatted_prototype) = $self->_convert($prototype);
push @$columnsize,
2+Texinfo::Convert::Unicode::string_width($formatted_prototype);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/Convert/LaTeX.pm: remove unused code,
Patrice Dumas <=
- Prev by Date:
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_list_environments) (_latex_header, _convert): only import packages and output LaTeX code related to list environments if needed for the document formatting.
- Next by Date:
branch master updated: * tp/Texinfo/Convert/Converter.pm (set_tree_unit_file) (_set_tree_units_files, output), tp/Texinfo/Convert/HTML.pm (command_filename, command_href, _default_format_element_header) (_default_format_element_footer, _html_set_pages_files, output), tp/Texinfo/Structuring.pm (elements_file_directions), tp/init/book.pm, tp/init/chm.pm, tp/init/epub3.pm, tp/t/init/t2h_singular.init: rename tree unit 'filename' key as 'unit_filename'.
- Previous by thread:
branch master updated: * tp/Texinfo/Convert/LaTeX.pm (%LaTeX_list_environments) (_latex_header, _convert): only import packages and output LaTeX code related to list environments if needed for the document formatting.
- Next by thread:
branch master updated: * tp/Texinfo/Convert/Converter.pm (set_tree_unit_file) (_set_tree_units_files, output), tp/Texinfo/Convert/HTML.pm (command_filename, command_href, _default_format_element_header) (_default_format_element_footer, _html_set_pages_files, output), tp/Texinfo/Structuring.pm (elements_file_directions), tp/init/book.pm, tp/init/chm.pm, tp/init/epub3.pm, tp/t/init/t2h_singular.init: rename tree unit 'filename' key as 'unit_filename'.
- Index(es):