Bug
Multiline text node "broken" by automatic indentation of HTML source
Issue description
When the HTML output contains markup which uses significant newline characters in text content, the correct rendering is changed by any simple automatic base indentation that is applied. This becomes evident in the codecept SpanValueCest which contains two span-value elements holding multiline text content.
Developer comments
The automatic indentation simply applies n tabs to each line of the HTML source and puts it the generated HTML service. This is necessary because the parts of the complete HTML source are created in different editing contexts (basic general Topincs HTML template with the service HTML source code inserted). This works well for 99% of the case - was even a day in production due to oversight, but did not cause any serious problems there. Currently the issue described above is the only one that surfaced.
This does not only affect the service output, but also factsheet. If the topic type holds multi line occurrences, e.g. of datatype string or wiki-markup, it gets distorted.
One approach consideres to replace all newlines by the respective character reference.
There seems to be only two ways around this:
* use the character reference for newline in the HTML source
* avoid certain areas (of lines) when applying automatic indentation
Using the character reference now. HTML services that output significant whitespace, must use the new function html_nl.
|
Work sessions
Start |
2023-10-11T10:54:42
|
End |
2023-10-11T13:44:45
|
Participant |
Robert Cerny
|
|
We are sorry
This page cannot be displayed in your browser. Use Firefox, Opera, Safari, or Chrome instead.