mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
mkfiles.pl: fix regex syntax error.
Thanks to Brian K. White for spotting this straight-up syntax error of a missing ), in the regex handling the special case of &splitlines when it findss a word in its input string too long to fit in the specified output line width. Apparently in all my own uses of &splitline I'd never exercised that special-case code path before.
This commit is contained in:
parent
b566c5f125
commit
ad694a4941
@ -364,7 +364,7 @@ sub splitline {
|
||||
$len = (defined $width ? $width : 76);
|
||||
$splitchar = (defined $splitchar ? $splitchar : '\\');
|
||||
while (length $line > $len) {
|
||||
$line =~ /^(.{0,$len})\s(.*)$/ or $line =~ /^(.{$len,}?\s(.*)$/;
|
||||
$line =~ /^(.{0,$len})\s(.*)$/ or $line =~ /^(.{$len,})?\s(.*)$/;
|
||||
$result .= $1;
|
||||
$result .= " ${splitchar}\n\t\t" if $2 ne '';
|
||||
$line = $2;
|
||||
|
Loading…
Reference in New Issue
Block a user