]> www.wagner.pp.ru Git - fiction/origanda.git/blob - fix.pl
Recover from working copy after CVS crash
[fiction/origanda.git] / fix.pl
1 #!/usr/bin/perl -i
2
3 while (<>) {
4  print "\n" if /^\s+/;
5  s/^\s+//;
6  while (/[À-ß]-$/) {
7    chop;chop;
8    $_ .= <>;
9  }
10  s/^- ?/--- /;
11  s/ +- +/~--- /g;
12  s/ +-$/~---/g;
13  s/\.\.\./\\ldots/g;
14  print;
15