X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/d7d8d4017537166a28ed8206ff51408ef668e870..276a888923a0d1aad6ceeac25513ff49d2f0493f:/fixup-docbook.rb?ds=sidebyside 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|