projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b1c2bc
)
Nicer line continuation
author
Jamie Cameron
<jcameron@webmin.com>
Wed, 14 Jan 2009 01:46:19 +0000
(
01:46
+0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Wed, 14 Jan 2009 01:46:19 +0000
(
01:46
+0000)
smart-status/smart-status-lib.pl
patch
|
blob
|
history
diff --git
a/smart-status/smart-status-lib.pl
b/smart-status/smart-status-lib.pl
index
9b40086
..
8e5eab2
100644
(file)
--- a/
smart-status/smart-status-lib.pl
+++ b/
smart-status/smart-status-lib.pl
@@
-206,7
+206,14
@@
if ($config{'attribs'}) {
}
elsif (/^\s+(\S.*)/ && @attribs && !$doneknown) {
# Continuation of a known attribute description
- $attribs[$#attribs]->[2] .= "<br>".$1;
+ local $cont = $1;
+ local $ls = $attribs[$#attribs];
+ if ($ls->[2] =~ /\.\s*$/) {
+ $ls->[2] .= "<br>".$cont;
+ }
+ else {
+ $ls->[2] .= " ".$cont;
+ }
}
elsif (/ATA\s+Error\s+Count:\s+(\d+)/i) {
# An error line!