#!/usr/bin/env python
#
# adds anchors before any
tags with an id="..." - this is used
# for things like the FAQ where we want to have anchored links to every
# question (and this way you don't have to manually maintain it in the source
# doc).
from sys import argv
import re
script, filename = argv
textfile = open(filename, "r")
regex = r'()'
regex2 = r'()'
replacement = r'
\n\1'
# check for