projects
/
roojspacker
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
68bce8a
)
src/jsdoc/Symbol.vala
author
Alan Knowles
<alan@roojs.com>
Wed, 11 Jul 2018 14:06:32 +0000
(22:06 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 11 Jul 2018 14:06:32 +0000
(22:06 +0800)
src/jsdoc/Symbol.vala
patch
|
blob
|
history
diff --git
a/src/jsdoc/Symbol.vala
b/src/jsdoc/Symbol.vala
index
319c5b4
..
0768458
100644
(file)
--- a/
src/jsdoc/Symbol.vala
+++ b/
src/jsdoc/Symbol.vala
@@
-226,7
+226,7
@@
namespace JSDOC {
if (authors.size) {
// turns author into a string....
this.author = "";
if (authors.size) {
// turns author into a string....
this.author = "";
- foreach(
authors as a
) {
+ foreach(
var a in authors
) {
this.author += (this.author == "") ? "": ", ";
this.author += a.desc;
}
this.author += (this.author == "") ? "": ", ";
this.author += a.desc;
}
@@
-250,7
+250,12
@@
namespace JSDOC {
// @desc
var descs = this.comment.getTag("desc");
if (descs.length) {
// @desc
var descs = this.comment.getTag("desc");
if (descs.length) {
- this.desc = descs.map(function($){return $.desc;}).join("\n"); // multiple descriptions are concatenated into one
+ this.desc = "";
+ foreach(var d in desc) {
+ this.desc = this.desc == "" ? "": "\n";
+ this.desc += d.desc;
+ }
+
}
/*~t
}
/*~t
@@
-264,7
+269,10
@@
namespace JSDOC {
var overviews = this.comment.getTag("overview");
if (overviews.length) {
var overviews = this.comment.getTag("overview");
if (overviews.length) {
- this.desc = [this.desc].concat(overviews.map(function($){return $.desc;})).join("\n");
+ foreach(var d in this.overviews) {
+ this.desc = this.desc == "" ? "": "\n";
+ this.desc += d.desc;
+ }
}
}
}
}