diff --git a/scripts/gendoc.sh b/scripts/gendoc.sh
index 38143939..4a92f681 100755
--- a/scripts/gendoc.sh
+++ b/scripts/gendoc.sh
@@ -18,6 +18,6 @@ perl -pi -e 's#
##' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
-perl -pi -e 's##
#' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
+perl -pi -e 's###' $MATRIXDOTORG/docs/spec/index.html $MATRIXDOTORG/docs/howtos/client-server.html
-scp -r $MATRIXDOTORG/docs matrix@ldc-prd-matrix-001:/sites/matrix
\ No newline at end of file
+scp -r $MATRIXDOTORG/docs matrix@ldc-prd-matrix-001:/sites/matrix