[x3d-public] X3dToJson.xslt dropping newlines from ECMAScript source code.

John Carlson yottzumm at gmail.com
Fri Jan 26 05:19:30 PST 2018


Losing spaces entirely in JSON output:

$ diff HelloWorldProgramOutput.json HelloWorldProgramOutput.Nashorn.json
369c369
<                               "#comment":"alternative XML encoding: Text string='\"One, Two, Three\" \"\" \"He said, \\"Immel did it!\\"\"'"
---
>                               "#comment":"alternative XML encoding: Text string='\"One, Two, Three\"\"\"\"He said, \\"Immel did it!\\"\"'"

Maybe I should have been happy with comments as they were?  Yipes!

John

Sent from Mail for Windows 10

From: John Carlson
Sent: Friday, January 26, 2018 7:48 AM
To: Don Brutzman; x3d-public at web3d.org
Subject: X3dToJson.xslt dropping newlines from ECMAScript source code.

Do NOT normalize ECMAScript source code like you normalize comments.

John


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180126/b506d40a/attachment.html>


More information about the x3d-public mailing list