EWSoftware / SHFB

Sandcastle Help File Builder (SHFB). A standalone GUI, Visual Studio integration package, and MSBuild tasks providing full configuration and extensibility for building help files with the Sandcastle tools.
Other
2.19k stars 369 forks source link

Whitespace ignored if two formatted words are next to each other. #1069

Closed digital-ember closed 2 months ago

digital-ember commented 3 months ago

I'm using version 2024.2.18.0, and it is my first time using Sandcastle.

The following HTML swallows my whitespace between "Hello" and "World!". Is this intentional?

<para>
    <legacyBold>Hello</legacyBold> <legacyItalic>World!</legacyItalic>
</para>

image

Juxtaposed to that, this is handling the whitespace just fine:

<para>
    <legacyBold>Hello</legacyBold> World!
</para>

image

EWSoftware commented 3 months ago

It's a known issue going back to the original Sandcastle tools. It's been a while since I've looked at it and I think it has more to do with saving the content to the file rather than the actual transformation. The workaround is to use a non-breaking space between the two elements.