I am trying to have all my HTML code in one line on TeamSite but when I save the DCR, it is automatically indenting all the code. Is there a way I can escape all the indentation and have one block of code? I tried using some HTML characters or commenting out the white space but it did not work or I might have not used it in the right way. Or if there's some feature on TeamSite that will help. Appreciate the help. Thanks!
Asked
Active
Viewed 61 times
0
-
What is the problem with having formatted code? – Sagar Patil Jul 17 '20 at 17:28
-
Hi! Thanks for your response. The output file that is being generated is invalid json. I tested and with just one block of code and the json is valid. To change json format, I need to change the presentation.xsl file. I want to see if there's an option without changing the presentation.xsl file. – nvps Jul 17 '20 at 17:43
-
JSON is not whitespace sensitive and can be minified. The formatting issues should not affect it. Also, why does it look like it is HTML in XML source code? – Sagar Patil Jul 19 '20 at 01:11