[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Fri, 19 Apr 2024 06:20:51 -0400 (EDT) |
branch: master
commit 74704f6f2d6205a2d9bb281ded2574c5b1bfe92f
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Apr 18 21:33:33 2024 +0200
* tp/init/html32.pm (html32_convert_tab_command): move code around,
remove comment.
---
ChangeLog | 5 +++++
tp/init/html32.pm | 8 ++++----
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 54126eafac..0c3011f921 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-18 Patrice Dumas <pertusus@free.fr>
+
+ * tp/init/html32.pm (html32_convert_tab_command): move code around,
+ remove comment.
+
2024-04-18 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/convert/ConvertXS.xs
diff --git a/tp/init/html32.pm b/tp/init/html32.pm
index fb50f1c2e7..cdc368271a 100644
--- a/tp/init/html32.pm
+++ b/tp/init/html32.pm
@@ -267,18 +267,18 @@ sub html32_convert_tab_command($$$$$)
my $args = shift;
my $content = shift;
- my $row = $command->{'parent'};
- my $row_cmdname = $row->{'contents'}->[0]->{'cmdname'};
-
$content = '' if (!defined($content));
- # FIXME is it right?
$content =~ s/^\s*//;
$content =~ s/\s*$//;
if ($self->in_string()) {
return $content;
}
+
+ my $row = $command->{'parent'};
+ my $row_cmdname = $row->{'contents'}->[0]->{'cmdname'};
+
if ($row_cmdname eq 'headitem') {
return "<th>" . $content . '</th>';
} else {