Wikipedia:AutoEd/whitespace.js: Difference between revisions

Content deleted Content added
Fix for adding space between # and REDIRECT
Tweak
Line 13:
str = str.replace(/\n\n\*/g, "\n*");
// str = str.replace(/[ \t][ \t]+/g, " ");
str = str.replace(/([=\n[\t ]\n*\n)(?:[\t ]*\n)+/g, "$1");
str = str.replace(/(=\n[\t ]*\n[\t ]*\n)(?:[\t ]*\n)+/g, "$1");
str = str.replace(/ \n/g, "\n");