Commit 6ec3f23
committed
genhtml: Fix warning with small genhtml_line_field_width
On systems with Perl versions 5.21 and above, genhtml prints a warning
similar to the following during processing:
genhtml: Negative repeat count does nothing at bin/genhtml line 3854,
<SOURCE_HANDLE> line 4.
This is due to size calculations resulting in a negative number of
padding characters when genhtml_line_field_width is lower than the size
of the strings to pad (9). Fix this by disabling padding in these cases.
Reported-by: xaizek@openmailbox.org
Signed-off-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>1 parent d7cc759 commit 6ec3f23
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3851 | 3851 | | |
3852 | 3852 | | |
3853 | 3853 | | |
3854 | | - | |
3855 | | - | |
| 3854 | + | |
| 3855 | + | |
3856 | 3856 | | |
3857 | 3857 | | |
3858 | 3858 | | |
| |||
0 commit comments