]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup-docbook.rb
Copyedited for Tribe of Noise
[text-madewithcc.git] / fixup-docbook.rb
index 225b5d076966cb7983d582d258158a9f184641ba..fb72e87a26f49bfacdf5849a3672798c345cb452 100755 (executable)
@@ -85,7 +85,9 @@ log 0, 'remove empty notes/web links sections'
 end
 
 log 0, 'remove title from dedication'
-xml.css('dedication title')[0].content = ""
+if ! xml.css('dedication title').empty?
+  xml.css('dedication title')[0].content = ""
+end
 
 log 0, 'move legal notice to bookinfo'
 xml.css('book bookinfo')[0].last_element_child.after('<legalnotice>')