* Do not rely on Java classes to implement IPathElement.
Implement all necessary features such as href() and getChildElement() ourselves instead. * Add missing classes to class.properties. * Display actual line numbers in function source macro.
This commit is contained in:
parent
c9463fe57a
commit
694139d897
6 changed files with 47 additions and 26 deletions
|
@ -129,8 +129,9 @@ function source_macro(param) {
|
|||
sourcecode = sourcecode.replace(r, "");
|
||||
|
||||
var arr = sourcecode.split("<br />");
|
||||
var line = this.getStartLine ? this.getStartLine() : 1;
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
res.write('<font color="#aaaaaa">' + (i + 1) + ':</font> ');
|
||||
res.write('<font color="#aaaaaa">' + (line++) + ':</font> ');
|
||||
if (i < 99) {
|
||||
res.write(' ');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue