(DW 2017) Issue with php pages and Apply Source Formatting
I've reported this bug several months ago but Adobe (as always) not listen.
Edit -> Code -> Apply Source Formatting
Above commands create wrong source formatting code with javascript in the php pages.
For example with Google Analytics, before (correct):
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i
=i ||function(){ (i
.q=i .q||[]).push(arguments)},i .l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
...
after (wrong):
( function ( i, s, o, g, r, a, m ) {
i[ 'GoogleAnalyticsObject' ] = r;
i[ r ] = i[ r ] || function () {
( i[ r ] . q = i[ r ] . q || [] ) . push( arguments )
}, i[ r ] . l = 1 * new Date();
a = s . createElement( o ),
m = s . getElementsByTagName( o )[ 0 ];
a . async = 1;
a . src = g;
m . parentNode . insertBefore( a, m )
} )( window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga' );
....
Other problem with the formatting code.
With php pages the code create a different formatting:
Before (correct):
<body>
<section>
...
</section>
After (wrong):
<body>
<section>
...
</section>
Could someone report this bug to Adobe?
The bug it's already been reported on the bug section but nothing happened.
