[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[7715] HTML.pm fix enumerate starting at 0
From: |
gavinsmith0123 |
Subject: |
[7715] HTML.pm fix enumerate starting at 0 |
Date: |
Fri, 14 Apr 2017 03:29:21 -0400 (EDT) |
Revision: 7715
http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7715
Author: gavin
Date: 2017-04-14 03:29:20 -0400 (Fri, 14 Apr 2017)
Log Message:
-----------
HTML.pm fix enumerate starting at 0
Modified Paths:
--------------
trunk/ChangeLog
trunk/tp/Texinfo/Convert/HTML.pm
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog 2017-04-11 06:40:52 UTC (rev 7714)
+++ trunk/ChangeLog 2017-04-14 07:29:20 UTC (rev 7715)
@@ -1,3 +1,10 @@
+2017-04-14 Gavin Smith <address@hidden>
+
+ * tp/Texinfo/Convert/HTML.pm (_convert_enumerate_command):
+ Check if the 'enumerate_specification' is defined, rather than
+ true, as if the value is '0', this is considered to be false.
+ Enumerated lists starting at 0 broken reported by Andreas Schwab.
+
2017-04-11 Gavin Smith <address@hidden>
* info/session.c (match_in_match_list): Take a argument to say
Modified: trunk/tp/Texinfo/Convert/HTML.pm
===================================================================
--- trunk/tp/Texinfo/Convert/HTML.pm 2017-04-11 06:40:52 UTC (rev 7714)
+++ trunk/tp/Texinfo/Convert/HTML.pm 2017-04-14 07:29:20 UTC (rev 7715)
@@ -2981,7 +2981,7 @@
if ($content eq '') {
return '';
}
- if ($command->{'extra'}{'enumerate_specification'}
+ if (defined $command->{'extra'}{'enumerate_specification'}
and $command->{'extra'}{'enumerate_specification'} =~ /^\d*$/
and $command->{'extra'}{'enumerate_specification'} ne '1') {
return "<ol start=\"$command->{'extra'}{'enumerate_specification'}\">\n"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [7715] HTML.pm fix enumerate starting at 0,
gavinsmith0123 <=