# # == About == # # This script surrounds the "Contents" heading, as well as the list itself, in a div wrapper element # For it to work properly, the contents heading must be h2 and have it's id as "contents", # and there must be a paragraph element after the item list BEGIN { started = 0 } /h2 id="contents"/ { print "
" started = 1 } started == 1 && /

/ { print "

" started = 0 }