From: Petter Reinholdtsen Date: Mon, 26 Oct 2020 20:51:41 +0000 (+0100) Subject: Adjust attribution handling for epub edition. X-Git-Tag: nb-printed-2020-11-13~46 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/e58c8558e970badc00a89cea0a7f25b395f20906 Adjust attribution handling for epub edition. --- diff --git a/fixup-docbook.rb b/fixup-docbook.rb index a201d9a..1abfc9c 100755 --- a/fixup-docbook.rb +++ b/fixup-docbook.rb @@ -110,7 +110,7 @@ end sect = xml.css(spec)[0] paras = sect.css('para emphasis') auth = '
' - auth += paras.map{|p| p.content}.join('') + auth += paras.map{|p| p.content}.join(', ') auth += '
' sect.last_element_child.after(auth) paras.each {|i| i.parent.remove} # Remove both the 'emphasis' and its parent 'para'