projects
/
gnome.introspection-doc-generator
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dbde44
)
JSDOC/TokenReader.vala
author
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:16:58 +0000
(17:16 +0800)
committer
Alan Knowles
<alan@roojs.com>
Tue, 15 Sep 2015 09:16:58 +0000
(17:16 +0800)
JSDOC/TokenReader.vala
patch
|
blob
|
history
diff --git
a/JSDOC/TokenReader.vala
b/JSDOC/TokenReader.vala
index
15d6319
..
a60dccb
100644
(file)
--- a/
JSDOC/TokenReader.vala
+++ b/
JSDOC/TokenReader.vala
@@
-332,12
+332,13
@@
namespace JSDOC {
if (this.collapseWhite) {
found = "\n";
}
- if (this.keepWhite) {
- var last = tokens ? tokens.pop() : false;
- if (last && last.name != "WHIT") {
+
+ if (this.keepWhite) {
+ var last = tokens.pop();
+ if (last != null && last.name != "WHIT") {
tokens.push(last);
}
-
+ // replaces last new line...
tokens.push(new Token(found, "WHIT", "NEWLINE", line));
}
return true;