]> projects.mako.cc - beamer-mako/blobdiff - extract-notes
fixed some bugs and improved the quality of the code to build/extract data
[beamer-mako] / extract-notes
index 06f58366fbdf2dda206aa7896a748d53a35ce511..0d11083bf0d47acc99ec401f4c313e0acfab3f5e 100755 (executable)
@@ -23,7 +23,7 @@ foreach $filename (@ARGV) {
         
         if ($line =~ /^\% pdfpc\:end/) {
             $note_record = 0;
-            chomp $note_text;
+            $note_text =~ s/^\s*(.*?)\s*$/$1/;
             print NOTESFILE "\#\#\# $slide_counter\n$note_text\n";
         }
         

Benjamin Mako Hill || Want to submit a patch?