From ef22968810d555f78d3bbf7b5428757690c8cc70 Mon Sep 17 00:00:00 2001
From: Matias Niemelä
Date: Thu, 6 Jun 2013 01:28:50 -0400
Subject: feat(ngdocs): support popover, foldouts and foldover annotations
---
docs/components/angular-bootstrap/bootstrap-prettify.js | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'docs/components/angular-bootstrap/bootstrap-prettify.js')
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js
index f1c3fccb..dc2a34e2 100644
--- a/docs/components/angular-bootstrap/bootstrap-prettify.js
+++ b/docs/components/angular-bootstrap/bootstrap-prettify.js
@@ -96,9 +96,12 @@ directive.code = function() {
directive.prettyprint = ['reindentCode', function(reindentCode) {
return {
restrict: 'C',
- terminal: true,
compile: function(element) {
- element.html(window.prettyPrintOne(reindentCode(element.html()), undefined, true));
+ var html = element.html();
+ //ensure that angular won't compile {{ curly }} values
+ html = html.replace(/\{\{/g, '{{')
+ .replace(/\}\}/g, '}}');
+ element.html(window.prettyPrintOne(reindentCode(html), undefined, true));
}
};
}];
--
cgit v1.2.3