aboutsummaryrefslogtreecommitdiffstats
path: root/docs/components
diff options
context:
space:
mode:
Diffstat (limited to 'docs/components')
-rw-r--r--docs/components/angular-bootstrap/bootstrap-prettify.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js
index 9d8a7d23..169d232b 100644
--- a/docs/components/angular-bootstrap/bootstrap-prettify.js
+++ b/docs/components/angular-bootstrap/bootstrap-prettify.js
@@ -102,7 +102,12 @@ directive.prettyprint = ['reindentCode', function(reindentCode) {
//ensure that angular won't compile {{ curly }} values
html = html.replace(/\{\{/g, '<span>{{</span>')
.replace(/\}\}/g, '<span>}}</span>');
- element.html(window.prettyPrintOne(reindentCode(html), undefined, true));
+ if (window.RUNNING_IN_NG_TEST_RUNNER) {
+ element.html(html);
+ }
+ else {
+ element.html(window.prettyPrintOne(reindentCode(html), undefined, true));
+ }
}
};
}];