# HG changeset patch
# User Jim Hague <jim.hague@acm.org>
# Date 1361064584 0
# Node ID 540511b14c73a6e8dc681b36cf02b93f40e14efe
# Parent  f606da6f871840a8117c10c49e6df68154fc3e0b
Handle '&' appearing in HTML output from tune titles.

It must be escaped or sed will substitute the pattern being searched for
at that point in the result.

diff -r f606da6f8718 -r 540511b14c73 makeWeb.sh
--- a/makeWeb.sh	Sun Feb 17 00:55:23 2013 +0000
+++ b/makeWeb.sh	Sun Feb 17 01:29:44 2013 +0000
@@ -59,10 +59,10 @@
         # Generate the tune web page.
         tunepage=${name}.html
 
-        sed -e "s/@TITLE@/${title}/" \
+        sed -e "s/@TITLE@/${title//&/\&}/" \
             -e "s/@TUNE@/${name}/" dottes.html.tune > $webdir/$tunepage
 
-        sed -e "s/@TITLE@/${title}/" \
+        sed -e "s/@TITLE@/${title//&/\&}/" \
             -e "s/@TUNE@/${name}/" dottes.html.tuneindex >> $webdir/$output
     done