mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

commit a9eee7b654856a880237b72decb2aee66d6670fa
parent 873656c72abc9941b97beb2a585898b9d0f2468b
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Wed,  2 Mar 2016 21:01:55 +0100

short section titles

Diffstat:
shorthand.pl | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/shorthand.pl b/shorthand.pl @@ -199,7 +199,11 @@ while (<>) { $subsecneeded = 0; } $level = "$level*" if $5 eq "*"; - print "\\$level\{$2\}\n"; + if ($2 =~ /^ *\[([^]]*)\] (.*)/) { + print "\\$level\[$1\]\{$2\}\n"; + } else { + print "\\$level\{$2\}\n"; + } next; } if ($l =~ /^\.\.\.$/) {