diff --git a/source/Ox.UI/js/Core/Ox.DocPage.js b/source/Ox.UI/js/Core/Ox.DocPage.js
index a16183ff..5bbe6012 100644
--- a/source/Ox.UI/js/Core/Ox.DocPage.js
+++ b/source/Ox.UI/js/Core/Ox.DocPage.js
@@ -86,8 +86,8 @@ Ox.DocPage = function(options, self) {
.css({marginLeft: ((level * 32 + 32) + 'px')})
.html(
'> ' +
- //Ox.encodeHTML(example.statement)
- example.statement
+ Ox.encodeHTML(example.statement)
+ //example.statement
.replace(/ /g, ' ')
.replace(/\n/g, '
'
@@ -103,18 +103,12 @@ Ox.DocPage = function(options, self) {
});
} else if (section == 'source') {
var html = '';
- var flag = false;
item.source.forEach(function(token) {
- if (token.type != 'linebreak' && token.type != 'whitespace') {
- flag = true;
- }
- if (flag) {
- html += '' +
- Ox.encodeHTML(token.source)
- .replace(/ /g, ' ')
- .replace(/\n/g, '
\n ') +
'
') +
- '';
- }
+ html += '' +
+ Ox.encodeHTML(token.source)
+ .replace(/ /g, ' ')
+ .replace(/\n/g, '
') +
+ '';
});
$elements.push($('