Permalink
Browse files

fixed regression caused by ee20a61 which re-enabled reading of emacs …

…temporary files (i.e. ending in .md~) as presentation files
  • Loading branch information...
1 parent ad322a4 commit c92b89918403fb37ea89dfe8c3ed80944fbcc048 @jfinkels jfinkels committed Sep 12, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/showoff.rb
View
@@ -275,7 +275,7 @@ def get_slides_html(static=false, pdf=false)
files = []
files << load_section_files(section)
files = files.flatten
- files = files.select { |f| f =~ /.md/ }
+ files = files.select { |f| f =~ /.md$/ }
files.each do |f|
fname = f.gsub(options.pres_dir + '/', '').gsub('.md', '')
data << process_markdown(fname, File.read(f), static, pdf)

0 comments on commit c92b899

Please sign in to comment.