On 07/20/2011 11:27 AM, Gian Marco Gherardi wrote:
> Hi, i'm using the "pretty" task on a freshly generate qx 1.5 app.
> I'm on windows 7 x64.
> i've customized the pretty task in config.json as follows:
>
> "pretty": {
>       "pretty-print": {
>               "general": {
>                       "indent-string": "\t"
>               },
>               "comments": {
>                       "block": {
>                               "add": false
>                       }
>               },
>               "code": {
>                       "open-curly": {
>                               "newline-before": "n"
>                       }
>               }
>       }
> }
>
> The problem is that all existing comments in .js files are deeply
> indented (i mean INSANELY deeply).

This is due to you specifying the indent-string as tab ("\t"). 
Indentation levels are indented with multiples of indent-string, the 
indentation factor being 2 (IIRC). If your editor displays tabs as 8 
spaces (the usual default), you see multiples of 8 as the indentation, 
which adds up pretty quickly :). You might better use a sequence of 
space characters as indent-string.

>   Also the modified .js files becomes
> HUGE (for example  appname\source\class\appname\test\DemoTest.js
> becomes 99Mb in size).

What causes the increase in size? What's the additional content?

T.


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to