Open Power Template 2.x family
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
PLEASE PROVIDE THE TEMPLATES AND/OR PHP CODE IN THE TASK DESCRIPTION (Not URL-s to them). THAT ALLOWS US TO REPRODUCE THE PROBLEM! OTHERWISE WE ARE NOT ABLE TO HELP YOU!
Remember to hide all the security-related pieces of code from the task description, like passwords, server paths etc. for your own safety. Once we close the task, we cannot edit it anymore!
FS#58 - stripWhitespaces and whitespaces produces an invlaid XML output
Attached to Project:
Open Power Template
Opened by Skruppy (Skrupellos) - Friday, 27 February 2009, 10:15 GMT-7
Last edited by Zyx (Zyx) - Saturday, 28 February 2009, 03:15 GMT-7
Opened by Skruppy (Skrupellos) - Friday, 27 February 2009, 10:15 GMT-7
Last edited by Zyx (Zyx) - Saturday, 28 February 2009, 03:15 GMT-7
|
DetailsEXAMPLE:
In the following templates I use # instead of a blank character. This should be better to see. So if you try out the examples, replace the # with a blank character. Any other whitespace works --- code --- $tpl->stripWhitespaces = true; --- END code --- --- template --- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <opt:root> <div> </div> </opt:root> --- END template --- RESULT: --- output --- <div></div></> --- END output --- EXPECTED: --- output --- <div>#</div> --- END output --- or --- output --- <div /> --- END output --- Could you please explain what, and why, is the right output. |
This task depends upon
Closed by Zyx (Zyx)
Saturday, 28 February 2009, 03:15 GMT-7
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 60.
Saturday, 28 February 2009, 03:15 GMT-7
Reason for closing: Fixed
Additional comments about closing: Fixed in rev. 60.
----
<div> </div>
----