Ox.DocPage: change name of tests section to Tests; minor cleanup
This commit is contained in:
parent
dfe2f77615
commit
01f0fc13fd
1 changed files with 2 additions and 4 deletions
|
@ -174,9 +174,7 @@ Ox.DocPage = function(options, self) {
|
|||
Ox.contains(section, 'inherited')
|
||||
? section[0].toUpperCase() + section.slice(1)
|
||||
: Ox.toTitleCase(
|
||||
section == 'returns' ? 'usage'
|
||||
: section == 'tests' ? 'examples'
|
||||
: section
|
||||
section == 'returns' ? 'usage' : section
|
||||
)
|
||||
) + '</span>')
|
||||
);
|
||||
|
@ -189,7 +187,7 @@ Ox.DocPage = function(options, self) {
|
|||
'<code><b>> '
|
||||
+ Ox.encodeHTMLEntities(test.statement)
|
||||
.replace(/ /g, ' ')
|
||||
.replace(/\n/g, '<br/>\n ')
|
||||
.replace(/\n/g, '<br>\n ')
|
||||
+ '</b></code>'
|
||||
)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue