summaryrefslogtreecommitdiff
path: root/syntax.pl
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-01-05 09:43:38 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-01-05 09:43:38 +0000
commit0a44c3110116998062d92088b45366594df79acc (patch)
treeb5b61d19c31b55ec796f331cbfd0e1740fdc6285 /syntax.pl
parent1dc07c42bd2f8977181671fd5bb75bd00ac52bfa (diff)
downloadirssi-0a44c3110116998062d92088b45366594df79acc.zip
/HELP: Set indent to 0 when printing text. syntax.pl now changes tabs
to 9 spaces at the start of lines in help files. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1075 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'syntax.pl')
-rwxr-xr-xsyntax.pl2
1 files changed, 2 insertions, 0 deletions
diff --git a/syntax.pl b/syntax.pl
index 0694ea22..39a600eb 100755
--- a/syntax.pl
+++ b/syntax.pl
@@ -34,6 +34,8 @@ while (<docs/help/in/*.in>) {
$DATARIVI = $SYNTAX;
} elsif ($DATARIVI =~ /^\S+/) {
chomp $DATARIVI if ($data[$count+1] =~ /^\S+/);
+ } else {
+ $DATARIVI =~ s/^\t/ / while ($DATARIVI =~ /^\t/);
}
$count++;
}