web/build_site.rb in rubyvis-0.3.3 vs web/build_site.rb in rubyvis-0.3.4

- old
+ new

@@ -46,14 +46,18 @@ title=File.basename(f) text=[] source_a=[] previous_example="" next_example="" + title_obtained=false fp.each do |line| - if line=~/\s*#\s*(.+)/ and !comment + if line=~/\s*#\s*encoding:/ + next + elsif line=~/\s*#\s*(.+)/ and !comment t=$1 - if t=~ /=\s*(.+)/ + if t=~ /^=\s*(.+)$/ and !title_obtained title=$1 + title_obtained=true else text << t end else comment=true