]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup-docbook.rb
Make sure to generate valid docbook for dedication.
[text-madewithcc.git] / fixup-docbook.rb
index ba5fe26356651c8fbdec742ce98dd86946c8e6ea..0c99fc45b10d4a39200471f83642f3f03fba201c 100755 (executable)
@@ -102,8 +102,8 @@ xml.css('dedication').each do |ded|
   c = ded.css('quote').first.content
   quote.parent.remove # remove the '<para>' containing the quote
   auth.remove
   c = ded.css('quote').first.content
   quote.parent.remove # remove the '<para>' containing the quote
   auth.remove
-  ded.last_element_child.after('<blockquote><para>%s</para><attribution>%s</attribution></blockquote>' %
-                               [quote_c, auth_c])
+  ded.last_element_child.after('<blockquote><attribution>%s</attribution><para>%s</para></blockquote>' %
+                               [auth_c, quote_c])
 end
 
 %w(preface#foreword preface#introduction).each do |spec|
 end
 
 %w(preface#foreword preface#introduction).each do |spec|