diff options
| author | Igor Minar | 2011-04-07 12:34:34 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-04-07 12:34:34 -0700 |
| commit | e5419db6c75b7dd3b00f5a72ea17be71f4815ceb (patch) | |
| tree | cf6f4cb65678d4ee18a10c3855b8c3b5b30f7c52 | |
| parent | 754d2541c41080ba8d2a20cbe04ce16b1742296f (diff) | |
| download | angular.js-e5419db6c75b7dd3b00f5a72ea17be71f4815ceb.tar.bz2 | |
fix indentation regexp for doc:examples
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
