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:
006db68
)
JSDOC/CompressWhite.js
author
alan
<alan@alanfast.akbkhome.com>
Wed, 21 Apr 2010 08:30:06 +0000
(16:30 +0800)
committer
alan
<alan@alanfast.akbkhome.com>
Wed, 21 Apr 2010 08:30:06 +0000
(16:30 +0800)
JSDOC/CompressWhite.js
patch
|
blob
|
history
diff --git
a/JSDOC/CompressWhite.js
b/JSDOC/CompressWhite.js
index
3048b7f
..
a047b5c
100644
(file)
--- a/
JSDOC/CompressWhite.js
+++ b/
JSDOC/CompressWhite.js
@@
-32,7
+32,16
@@
CompressWhite = function (ts, packer)
}
}
-
+ if (tok.data == "}") {
+
+ if (ts.lookTok(1).type == 'NAME' && ts.look(1,true).name == "NEWLINE") {
+
+ ts.look(0).outData = ts.look(0).data+"\n";
+ }
+ // restore..
+ ts.cursor = cu;
+ continue;
+ }
// add semi-colon's where linebreaks are used... - not foolproof yet.!
if (tok.type == "NAME") {
//var tokident = ts.look(-1).data + tok.data + ts.look(1).data + ts.look(2).data;
// add semi-colon's where linebreaks are used... - not foolproof yet.!
if (tok.type == "NAME") {
//var tokident = ts.look(-1).data + tok.data + ts.look(1).data + ts.look(2).data;