Mercurial > hg > Members > kono > os9 > sbc09
view TL1/toasm.pl @ 158:a4aa3ec95b75
fix addCurrent
author | kono |
---|---|
date | Mon, 21 Jan 2019 10:39:50 +0900 |
parents | 8f2154d95a04 |
children |
line wrap: on
line source
#!/usr/bin/perl my $indent = 7; while(<>) { s/\r\n$//; s/^\d+ //; s/^ /" "x$indent/e; if (/^([a-zA-Z0-9]+) /) { my $w = $1; if (length $w < $indent) { my $s = " "x($indent-length $w); s/ /$s/e; } } print $_,"\n" }