texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[7374] fix "Negative repeat count does nothing"


From: gavinsmith0123
Subject: [7374] fix "Negative repeat count does nothing"
Date: Sun, 18 Sep 2016 22:24:12 +0000 (UTC)

Revision: 7374
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=7374
Author:   gavin
Date:     2016-09-18 22:24:12 +0000 (Sun, 18 Sep 2016)
Log Message:
-----------
fix "Negative repeat count does nothing"

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/tp/Texinfo/Convert/Plaintext.pm

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog     2016-09-18 22:12:49 UTC (rev 7373)
+++ trunk/ChangeLog     2016-09-18 22:24:12 UTC (rev 7374)
@@ -1,5 +1,13 @@
 2016-09-18  Gavin Smith  <address@hidden>
 
+       * tp/Texinfo/Convert/Plaintext.pm (_compute_spaces_align_line):
+       Change a ">" to a ">=" to avoid the possibility of a negative 
+       return value when $line_width equals $max_column exactly.  Error 
+       message "Negative repeat count does nothing" reported by
+       Paul Eggert.
+
+2016-09-18  Gavin Smith  <address@hidden>
+
        * info/indices.c (info_virtual_index): Put text within a
        call to gettext so that it can be translated.
 

Modified: trunk/tp/Texinfo/Convert/Plaintext.pm
===================================================================
--- trunk/tp/Texinfo/Convert/Plaintext.pm       2016-09-18 22:12:49 UTC (rev 
7373)
+++ trunk/tp/Texinfo/Convert/Plaintext.pm       2016-09-18 22:24:12 UTC (rev 
7374)
@@ -940,7 +940,7 @@
   my $no_align = shift;
 
   my $spaces_prepended;
-  if ($line_width > $max_column or $no_align) {
+  if ($line_width >= $max_column or $no_align) {
     $spaces_prepended = 0;
   } elsif ($direction eq 'center') {
     # if no int we may end up with floats...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]