From 276a888923a0d1aad6ceeac25513ff49d2f0493f Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Sun, 25 Oct 2020 21:37:50 +0100 Subject: [PATCH] Make sure to generate valid docbook for dedication. --- fixup-docbook.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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| -- 2.47.2