X-Git-Url: https://hackdaworld.org/gitweb/?p=lectures%2Fdfb-slides.git;a=blobdiff_plain;f=parse.pl;fp=parse.pl;h=0f07155672b31a2c7d46113b567e7b0b2a251a43;hp=ff374bcda01b87d579fcdcc1e9599efbbb1ed60d;hb=b151283c5095fe1362b981ade94e824a6fc6ec66;hpb=ef110532579f671d145f88213c1f27b9298c8c65 diff --git a/parse.pl b/parse.pl index ff374bc..0f07155 100755 --- a/parse.pl +++ b/parse.pl @@ -4,6 +4,7 @@ chomp @content; @slide=(); +@topics=(); @actions=( "", "slide top", @@ -27,8 +28,6 @@ while() { } 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/&/&/g; s//>/; @@ -118,5 +118,6 @@ foreach(@content) { push(@slide,$_); } } +} print "\n"; \ No newline at end of file