Browse files

twiki2pod.pl: fixed the normal paragraph formating.

  • Loading branch information...
1 parent fe7d5ed commit 0274750da3f6399b5568c110b19ce235cf37eb6b @agentzh agentzh committed Aug 15, 2012
Showing with 14 additions and 0 deletions.
  1. +14 −0 twiki2pod.pl
View
14 twiki2pod.pl
@@ -27,6 +27,20 @@
}
print "\n\n=item *\n\n";
+
+ } else {
+ $new_level = 0;
+
+ if ($new_level == $level) {
+ # do nothing
+
+ } else {
+ # $new_level < $level
+ while ($new_level < $level) {
+ print "\n\n=back\n\n";
+ $level--;
+ }
+ }
}
s/\[\[([^]]+)\|[^]]+\]\]/$1/g;

0 comments on commit 0274750

Please sign in to comment.