diff options
| author | Misko Hevery | 2011-02-22 14:48:53 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-02-22 14:48:53 -0800 |
| commit | 55ce859998ad1f34ae84175cbb322fd8ce498970 (patch) | |
| tree | a7f5fd27183c65b538d1483d67903a7f7570da28 /docs/src/ngdoc.js | |
| parent | 5a3c9190dc0ed037ffca73db61404ff0f3ef2675 (diff) | |
| download | angular.js-55ce859998ad1f34ae84175cbb322fd8ce498970.tar.bz2 | |
fix documentation for ie
Diffstat (limited to 'docs/src/ngdoc.js')
| -rw-r--r-- | docs/src/ngdoc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 93d5c43e..2f59f044 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -77,12 +77,12 @@ Doc.prototype = { } else if (text.match(/^<doc:example>/)) { text = text.replace(/(<doc:source>)([\s\S]*)(<\/doc:source>)/mi, function(_, before, content, after){ - return before + htmlEscape(content) + after; + return '<pre class="doc-source">' + htmlEscape(content) + '</pre>'; }); text = text.replace(/(<doc:scenario>)([\s\S]*)(<\/doc:scenario>)/mi, function(_, before, content, after){ self.scenarios.push(content); - return before + htmlEscape(content) + after; + return '<pre class="doc-scenario">' + htmlEscape(content) + '</pre>'; }); } else { text = text.replace(/<angular\/>/gm, '<tt><angular/></tt>'); |
