User:AoV2/whitespace2.js

autoEdWhitespace = function(str) { return str .replace(/\n+([\:\;\*\#])/gm, "\n$1") .replace(/[\t ]+\n/gm, "\n") .replace(/\n\n\n+/gm, "\n\n") //	.replace(/\n(\=+) *([^\n]*) *\1\n/gm, "\n$1$2$1\n") //	.replace(/(\=+)\n+\1\=/g, "$1\n$1\n") ;};