jorr
[lectures/dfb-slides.git] / parse.pl
index ff374bc..0f07155 100755 (executable)
--- a/parse.pl
+++ b/parse.pl
@@ -4,6 +4,7 @@
 chomp @content;
 
 @slide=();
+@topics=();
 
 @actions=( "",
                            "slide top",
@@ -27,8 +28,6 @@ while(<IN>) {
 }
 close(IN);
 
-@topics=();
-
 foreach(@content) {
        if((/^\d/) or (/^ \d/)) {
                push(@topics,$_);
@@ -55,6 +54,7 @@ push(@content," 23");
 
 foreach(@content) {
        s/\#.*//;
+       if(not /^\s+$/) {
        s/&/&amp;/g;
        s/</&lt;/;
        s/>/&gt;/;
@@ -118,5 +118,6 @@ foreach(@content) {
                push(@slide,$_);
        }
 }
+}
 
 print "</slides>\n";
\ No newline at end of file