]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Add code to remote title from dedication in XML.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 4 Feb 2018 20:03:54 +0000 (21:03 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Thu, 22 Feb 2018 18:12:09 +0000 (18:12 +0000)
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')