From: Petter Reinholdtsen Date: Sun, 25 Oct 2020 20:37:50 +0000 (+0100) Subject: Make sure to generate valid docbook for dedication. X-Git-Tag: nb-printed-2020-11-13~58 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/276a888923a0d1aad6ceeac25513ff49d2f0493f?ds=sidebyside Make sure to generate valid docbook for dedication. --- diff --git a/fixup-docbook.rb b/fixup-docbook.rb index ba5fe26..0c99fc4 100755 --- a/fixup-docbook.rb +++ b/fixup-docbook.rb @@ -102,8 +102,8 @@ xml.css('dedication').each do |ded| c = ded.css('quote').first.content quote.parent.remove # remove the '' containing the quote auth.remove - ded.last_element_child.after('
%s%s
' % - [quote_c, auth_c]) + ded.last_element_child.after('
%s%s
' % + [auth_c, quote_c]) end %w(preface#foreword preface#introduction).each do |spec|