X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/06361e33a389e93f50573dd4b90aa16710ba0ac6..a8677cda9cd6ca0f7243b95b4d83bc079acc3def:/fixup.rb diff --git a/fixup.rb b/fixup.rb index b96f666..18ddbd5 100644 --- a/fixup.rb +++ b/fixup.rb @@ -165,7 +165,11 @@ log 0, 'Mark up headings' data[at] = '%s %s' % ['#' * item[0], data[at]] end - +# We have the explicit strings "Part 1" and "Part 2" as structural +# elements — They are to be generated upon book compilation. Nuke +# them. +data.delete("# Part 1") +data.delete("# Part 2") # Join erroneously split paragraphs: Write the contents of the line # _preceding_ the unneeded break, the break will be removed.