Closed hituro closed 2 months ago
A slight correction...
The HTML output generated by @hituro's original Passage example when the nobr tag and the cleanupWikifierOutput setting are used in conjunction is..
<div> </div>
<p> </p>
<div> </div>
eg. each of the three elements will contain a single SPACE character.
Note, my original Discord example had a line-break inside each <div>
which produces the spaces in the divs that @greyelf shows. The example above would only put a space in the <p>
The current cleanupWikifierOutput code will produce empty paragraphs between elements separated only by a single line-break. e.g. in a passage with
nobr
enabledproduces
The empty paragraph there appears to be a mistake, since it is generated from the single line-break between the adjacent divs. It probably occurs because the line break is replaced with a single space, and that single space gets enclosed in a paragraph. It seems more logical not to generate a paragraph containing only whitespace.