From: Petter Reinholdtsen Date: Fri, 9 Feb 2018 11:47:15 +0000 (+0000) Subject: Make all web link blocks into sections in markdown. X-Git-Tag: es-printed~500 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/c4ccb77f0d9c39597c222518a1d977a5a3cc54e8?ds=sidebyside Make all web link blocks into sections in markdown. --- diff --git a/fixup.rb b/fixup.rb index e58f232..b60ebb8 100644 --- a/fixup.rb +++ b/fixup.rb @@ -268,6 +268,9 @@ data.each_with_index do |lin, idx| end if lin =~ /^(### Notes|Web links?)/ noteblock=true + # Turn web link line into section header, to make it easier to + # find by fixup-docbook.rb. + lin.gsub!(/^(Web links?)/, "### \\1") end end