Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit e5419db

Browse files
committed
fix indentation regexp for doc:examples
1 parent 754d254 commit e5419db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/templates/doc_widgets.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
function indent(text) {
6565
if (!text) return text;
66-
var lines = text.split(/[\n|\r]/);
66+
var lines = text.split(/\r?\n/);
6767
var lineNo = [];
6868
// remove any leading blank lines
6969
while (lines[0].match(/^\s*$/)) lines.shift();

0 commit comments

Comments
 (0)