I've just realised that there was a lurking gotcha in the naming of
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2012 22:40:27 +0000 (22:40 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 20 Feb 2012 22:40:27 +0000 (22:40 +0000)
commitc113ed52cc884c922f9c78ded2e66e57a8b4bfe0
tree40737cbff03885f287f85f8d402b927141fa35f1
parent66f0cb51690911c492bba4e94284ccd87c075cf2
I've just realised that there was a lurking gotcha in the naming of
HTML files after the pathnames they represent: in recursive -H mode
(dumping a full set of HTML reports into the filesystem), there could
be a name clash between index.html representing the top level, and
index.html representing a subdirectory called 'index'.

Fix by detecting the clash and adding gratuitous escaping in the
latter case; this is not a fully general solution that will work with
any list of string formats, but it should be good enough for the
current set.

git-svn-id: svn://svn.tartarus.org/sgt/agedu@9417 cda61777-01e9-0310-a592-d414129be87e
html.c