]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Adjust attribution handling for epub edition.
authorPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 20:51:41 +0000 (21:51 +0100)
committerPetter Reinholdtsen <pere@hungry.com>
Mon, 26 Oct 2020 20:51:41 +0000 (21:51 +0100)
fixup-docbook.rb

index a201d9a40d6e8a0bab982a08fe52df8e54655b3c..1abfc9c128dffb1d20625dba891427ed03694aef 100755 (executable)
@@ -110,7 +110,7 @@ end
   sect = xml.css(spec)[0]
   paras = sect.css('para emphasis')
   auth = '<blockquote><attribution>'
-  auth += paras.map{|p| p.content}.join('<?latex \newline ?>')
+  auth += paras.map{|p| p.content}.join('<?latex \newline ?>')
   auth += '</attribution><para/></blockquote>'
   sect.last_element_child.after(auth)
   paras.each {|i| i.parent.remove} # Remove both the 'emphasis' and its parent 'para'