]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup-docbook.rb
Add code to remote title from dedication in XML.
[text-madewithcc.git] / fixup-docbook.rb
index 8fc325b1a0022e83b3dc97146ad3fea3c9832ff8..9accbb3df8fd77c9151af57daca06d6e70f6b208 100755 (executable)
@@ -66,6 +66,9 @@ if s
   end
 end
 
+log 0, 'remove title from dedication'
+xml.css('dedication title')[0].content = ""
+
 log 0, 'Writing processed file'
 # Unable to figure out API way to replace DOCTYPE
 data = xml.to_xml().gsub!(/DOCTYPE article/, 'DOCTYPE book')