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:
1dc65bd
)
JSDOC/CompressWhite.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 07:33:39 +0000
(15:33 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Jul 2010 07:33:39 +0000
(15:33 +0800)
JSDOC/CompressWhite.js
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.js
b/JSDOC/CompressWhite.js
index
5c7ffec
..
60e1d28
100644
(file)
--- a/
JSDOC/CompressWhite.js
+++ b/
JSDOC/CompressWhite.js
@@
-21,9
+21,7
@@
CompressWhite = function (ts, packer, keepWhite)
break;
}
if (tok.type == "WHIT") {
- if (keepWhite) {
- ts.look(0).outData = ts.look(0).data;
- }
+
continue;
//if (tok._isDoc) {
// continue;
@@
-273,8
+271,10
@@
CompressWhite = function (ts, packer, keepWhite)
var outoff = 0;
out.length = ts.slen; // prealloc.
out = '';
+ var tok;
while (true) {
- var tok = ts.nextTok();
+
+ tok = keepWhite ? ts.next() : ts.nextTok();
if (!tok) {
break;