doc: ensure script purges all tt tags
authorRamprasad Venkataraman <ramv@illinois.edu>
Thu, 2 Aug 2012 22:25:09 +0000 (17:25 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Thu, 2 Aug 2012 22:34:29 +0000 (17:34 -0500)
doc/l2h_sanitize_markup.sh

index 345b8b810898a5fcf5f4dde32dfd53e96d69e19d..6a9d21a6fe36aad67a229455288662c00518c2d5 100755 (executable)
@@ -34,7 +34,7 @@ do
            -e 's|replace_with_script|script|g' \
                -e 's|<DIV CLASS="alltt"[^>]*>|<pre><code>|g' \
                -e 's|<TT>||g' \
-               -e '/<\/TT>/{N;s|<\/TT>||g;/\n<\/DIV>/{s|<\/DIV>|</code></pre>|g}}' \
+               -e '/<\/TT>/{N;s|<TT>||g;s|<\/TT>||g;/\n<\/DIV>/{s|<\/DIV>|</code></pre>|g}}' \
                -e '/<pre>/,/<\/pre>/s|<BR>||g' \
                -e '/^\w*$/d' \
        tmp > $f || die "error running sed on $f"