[x3d-public] X3dToJson.xslt should strip leading whitespace from #sourceText in shaders
John Carlson
yottzumm at gmail.com
Sat Aug 4 14:48:22 PDT 2018
I believe that X3dToJson.xslt should strip leading whitespace from #sourceText in shaders. Current tools are stripping it out.
The + signs in the diff below show what X3dToJson.xslt is producing. The – signs show what it should produce. The XML has no whitespace. Copying what the XML text has should be OK.
Thanks,
John
$ git diff .
warning: LF will be replaced by CRLF in src/main/data/SimpleShader.json.
The file will have its original line endings in your working directory.
diff --git a/src/main/data/SimpleShader.json b/src/main/data/SimpleShader.json
index 013942aa..7a6ca3b5 100644
--- a/src/main/data/SimpleShader.json
+++ b/src/main/data/SimpleShader.json
@@ -94,7 +94,7 @@
},
{
"@name":"translated",
- "@content":"19 June 2018"
+ "@content":"04 August 2018"
},
{
"@name":"generator",
@@ -156,7 +156,8 @@
{
"@type":"VERTEX",
"#sourceText":[
-"data:text/plain;charset=utf-8,",
+"",
+" data:text/plain;charset=utf-8,",
"",
"precision mediump float;",
"",
@@ -185,7 +186,8 @@
"@DEF":"_1",
"@type":"FRAGMENT",
"#sourceText":[
-"data:text/plain;charset=utf-8,",
+"",
+" data:text/plain;charset=utf-8,",
"",
"precision mediump float;",
"",
@@ -333,4 +335,4 @@
]
}
}
-}
+}
\ No newline at end of file
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20180804/5ec40769/attachment.html>
More information about the x3d-public
mailing list