Summary Files Commits Branches @commit @diff @stats
path: root / awk-edits / Group-contents.awk
diff options
context:
space:
mode:
1 files changed, 0 insertions, 24 deletions
-rw-r--r--awk-edits/Group-contents.awk24
diff --git a/awk-edits/Group-contents.awk b/awk-edits/Group-contents.awk
deleted file mode 100644
index 43fa460..0000000
--- a/awk-edits/Group-contents.awk
+++ /dev/null
@@ -1,24 +0,0 @@
-# .*(blog|slides|teaching|tutorials|misc)/.*/.*html
-#
-# == About ==
-#
-# Some pages contain contents info, comprised of a "Contents" heading (h2) and a
-# (usually ordered) list of anchors to headings in the current page.
-# This script groups that heading and list into a wrapper element with id
-# "contents-container", which can then be handled more specifically.
-#
-# In my case, the contents appear on the right of remaining text.
-
-BEGIN {
- started = 0
-}
-
-/h2 id="contents"/ {
- print "<div id=\"contents-container\">"
- started = 1
-}
-
-started == 1 && /<p>/ {
- print "</div>"
- started = 0
-}