summaryrefslogtreecommitdiff
path: root/syntax.pl
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-04 00:13:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-04 00:13:06 +0000
commit5def50c7f600f5031468435ce432844731aef0f7 (patch)
treeed981f5c05bf0eadafd345f230717068494d4420 /syntax.pl
parentc5cccfcdaa3e75c378b14086679e54a781b5b8c6 (diff)
downloadirssi-5def50c7f600f5031468435ce432844731aef0f7.zip
when joining lines together, put space between them..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1331 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'syntax.pl')
-rwxr-xr-xsyntax.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/syntax.pl b/syntax.pl
index 2d98d4c4..f0ec779b 100755
--- a/syntax.pl
+++ b/syntax.pl
@@ -33,7 +33,11 @@ while (<docs/help/in/*.in>) {
$SYNTAX =~ s/%\|$//;
$DATARIVI = $SYNTAX;
} elsif ($DATARIVI =~ /^\S+/) {
- chomp $DATARIVI if ($data[$count+1] =~ /^\S+/);
+ if ($data[$count+1] =~ /^\S+/) {
+ chomp $DATARIVI;
+ $DATARIVI =~ s/ *$//g;
+ $DATARIVI .= " ";
+ }
} else {
$DATARIVI =~ s/^\t/ / while ($DATARIVI =~ /^\t/);
}