Code

fix for #301: plug memory leak in lua bindings -- bmayland @ leoninedev.com
[rrdtool-all.git] / website / bin / htmlfix.sh
index 6f91c61bcb4cb2761e7eaf80652310e6626bfea9..b9b53a925202978a42e9e1dc82caf1098a674746 100755 (executable)
@@ -1,9 +1,10 @@
 #! /bin/sh
 case $1 in
 *.html)
-   tidy -latin1 -wrap 0 -q -asxhtml $1  >$1.fixed  2>$1.report
+#   tidy -latin1 -wrap 0 -q -asxhtml $1  >$1.fixed  2>$1.report
 #   TIDY_RET=$?
    TIDY_RET=0
+   cp  $1  $1.fixed
    perl -i -0777 -p -e 's/^\s*//;s{="mailto:(oetiker|tobi|tobias)@(oetiker.ch|ee.ethz.ch)"}{="http://tobi.oetiker.ch/"}g;s{="mailto:(\S*?)\@(\S*?)"}{="mailto:$1@..delete..this..$2"}g' $1.fixed
    # yes, beleive it or not IE chockes on propper xhtml pages ... sigh
    perl -i -0777 -p -e 's/^\s*<\?xml.+?\?>\s*//;'  $1.fixed
@@ -18,6 +19,6 @@ case $1 in
         exit 1
    fi
    mv $1.fixed $1
-   rm $1.report
+#   rm $1.report
 ;;
 esac