]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - fixup.rb
Translated using Weblate (Spanish)
[text-madewithcc.git] / fixup.rb
index b96f66625f40c4811713176a39df51bfe25ee169..18ddbd53f7a930d0e84676ace8343708110dea58 100644 (file)
--- 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.