| Summary: | Spaces at the end of text within <phrase> tag removed on save | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | mmurray |
| Component: | Web-UI | Assignee: | Lee Newson <lnewson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.1 | CC: | lnewson, mcaspers |
| Target Milestone: | --- | ||
| Target Release: | 1.3 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-03 22:16:30 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
mmurray
2013-10-10 01:24:35 UTC
Actually don't think I can get around issue. I added a space at start of phrase (so '<phrase> ') but space was removed on save. <phrase> needs a space at start or end when it comes in between other sentences and conditions are used. So this is a bug that needs fixing. Verifying that this is a bug and re-assigning to the correct component. As for working around it, the only way I can think to do that would be to use "Customer Portal. </phrase>The", although that would insert a non-breaking space. " " might work, but that doesn't exactly translate to a normal space either. Fixed in 1.3-SNAPSHOT build 201311071008 The convertNodeToString() method used to do the formatting wasn't taking inline elements into account when stripping/cleaning the whitespace from the start/end of the nodes. This meant that if you had something like Michelle mentioned above that the XML would be altered when it shouldn't have been. I tried a couple of inline elements with spaces at the start and end of the element, and single spaces were preserved. Multiple spaces were condensed to a single space, but this is valid because I believe multiple spaces are ignored anyway. |