end
end
+log 0, 'Mark quote in dedication as quote with attribute in markdown'
+start = "“I don’t know a whole lot about nonfiction journalism. . ."
+stop = "- David Foster Wallace"
+quote=false
+data.each_with_index do |lin, idx|
+ if lin == stop
+ lin.sub!(/^- /, "> — ")
+ lin.sub!("David Foster Wallace", "<cite>David Foster Wallace</cite>")
+ quote=false
+ break
+ end
+ if lin == start
+ quote=true
+ end
+ if quote
+ lin.sub!(/^/, "> ")
+ end
+end
+
log 0, 'Writing processed file'
File.open(dstfile, 'w') {|f| f.puts data.join("\n")}