Feature #39578
closed
Add whitespace between two tags when using stripHtml stdWrap
Added by Ingo Pfennigstorf over 12 years ago.
Updated almost 5 years ago.
Description
Having a block like this :
page = PAGE
page.10 = TEXT
page.10.value = <li>Hello</li><li>World</li>
page.10.stripHtml = 1
results in an output "HelloWorld"
I suggest to put a whitespace between the closing and opening tag to get the proper output "Hello World"
I will provide a patch for this feature
- Status changed from New to Under Review
If this breaks something, maybe it's smarter to add something like
page.10.stripHtml = 1
page.10.stripHtml.addWhitespaceBetweenTags = 1
and do not change the default behaviour.
What do you think?
Even if we make this feature non-default, we still need unit tests to make sure that this change does not break anything. (In other words: Breaking things is not okay even if the feature is optional. :-)
I will surely add some unit tests that will be included in the next patchset
Hi Ingo,
do you like to update your patch?
- Status changed from Under Review to New
- Assignee set to Mathias Schreiber
- Priority changed from Should have to Could have
- Target version set to 7.2 (Frontend)
- Target version changed from 7.2 (Frontend) to 7.4 (Backend)
- Target version changed from 7.4 (Backend) to 7.5
- Target version deleted (
7.5)
- Status changed from New to Closed
- Assignee deleted (
Mathias Schreiber)
Due to low demand / low priority I'm going to close this issue now. If anyone takes time to implement it, simply open a new issue please. Thanks.
Also available in: Atom
PDF