diff options
Diffstat (limited to 'sbolint')
| -rwxr-xr-x | sbolint | 9 | 
1 files changed, 7 insertions, 2 deletions
| @@ -867,10 +867,15 @@ sub check_slackdesc {  				log_error("slack-desc:$lineno: wrong prefix '$prefix', should be '$buildname:'");  			} elsif($text =~ /^\s+$/) {  				log_error("slack-desc:$lineno: trailing whitespace after colon, on otherwise-blank line"); -			} elsif(length($text) > 71) { -				log_error("slack-desc:$lineno: text too long, %d characters, should be <= 71", length($text));  			} elsif(length($text) && $text !~ /^ /) {  				log_error("slack-desc:$lineno: missing whitespace after colon, on non-blank line"); +			} else { +				if($text =~ /\s$/) { +					log_error("slack-desc:$lineno: trailing whitespace on description line"); +				} +				if(length($text) > 71) { +					log_error("slack-desc:$lineno: text too long, %d characters, should be <= 71", length($text)); +				}  			}  			my $bn = quotemeta($buildname); # some builds have + in the name | 
