[Dojo-interest] Building with shrinksafe changes behavior of dojox.html.format.prettyPrint

1 view
Skip to first unread message

thecheatah

unread,
May 20, 2011, 4:45:37 PM5/20/11
to dojo-i...@mail.dojotoolkit.org
Hi,

I have noticed a change in behavior of the method
dojox.html.format.prettyPrint if I use the shrinksafe optimizer.

Executing:
dojox.html.format.prettyPrint("test?") results in
"testundefined
"

While without the optimizer using just "comments" I get the expected result:
"test?
"

By default what optimizer does Dojo use in its release? Is this something I
should file a bug report for?

Thanks,

Ravneet

--
View this message in context: http://dojo-toolkit.33424.n3.nabble.com/Building-with-shrinksafe-changes-behavior-of-dojox-html-format-prettyPrint-tp2967103p2967103.html
Sent from the Dojo Toolkit mailing list archive at Nabble.com.
________________________________________________________
Dojotoolkit: http://dojotoolkit.org
Reference Guide: http://dojotoolkit.org/reference-guide
API Documentation: http://dojotoolkit.org/api
Tutorials: http://dojotoolkit.org/documentation

Dojo-i...@mail.dojotoolkit.org
http://mail.dojotoolkit.org/mailman/listinfo/dojo-interest

Ravneet Singh

unread,
May 23, 2011, 11:26:02 AM5/23/11
to dojo-i...@mail.dojotoolkit.org
This was not an issue with Dojo, but rather the generated source was
being copied in the wrong encoding. I had used the ant task concat
without specifying a default encoding.

Ravneet

Jared Jurkiewicz

unread,
May 23, 2011, 5:03:47 PM5/23/11
to dojo-i...@mail.dojotoolkit.org
Ah, that would do it. Shrinksafe converts the escaped form of a
character into its utf-8 encoding, and if you don't use the right
encoding, it will get mangled.

-- Jared

Reply all
Reply to author
Forward
0 new messages