From e5419db6c75b7dd3b00f5a72ea17be71f4815ceb Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Thu, 7 Apr 2011 12:34:34 -0700 Subject: fix indentation regexp for doc:examples --- docs/src/templates/doc_widgets.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/src/templates/doc_widgets.js') diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index a21fc5e1..6275012c 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -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(); -- cgit v1.2.3