projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a4b4d
)
In buildtoc, remove a superfluous length in output()
author
Nicholas Clark
<nick@ccl4.org>
Thu, 20 Jan 2011 17:12:50 +0000
(17:12 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Fri, 21 Jan 2011 08:37:32 +0000
(08:37 +0000)
If \S matches, then length must be non-zero, and therefore true.
This dates to commit
8ebc5c0145d2e355
, when output() was added.
pod/buildtoc
patch
|
blob
|
history
diff --git
a/pod/buildtoc
b/pod/buildtoc
index
76b41b8
..
748f65f
100644
(file)
--- a/
pod/buildtoc
+++ b/
pod/buildtoc
@@
-520,7
+520,7
@@
sub output ($) {
$NEWLINE++;
}
}
- elsif (/\S/
&& length
) {
+ elsif (/\S/) {
$LINE .= $_;
$NEWLINE = 0;
}