fix indentation regexp for doc:examples

This commit is contained in:
Igor Minar 2011-04-07 12:34:34 -07:00
parent 754d2541c4
commit e5419db6c7

View file

@ -63,7 +63,7 @@
function indent(text) {
if (!text) return text;
var lines = text.split(/[\n|\r]/);
var lines = text.split(/\r?\n/);
var lineNo = [];
// remove any leading blank lines
while (lines[0].match(/^\s*$/)) lines.shift();