Extra space in <tm> fields.
Posted: Mon Feb 10, 2025 12:56 pm
Folks,
For whatever reason, an extra space seems to be inserted in <tm> fields, so that <tm tmtype="tm">Windows</tm> results in ‘Windows ™'' rather than 'Windows™'
Example:
Results in:
And using that CSS:
I get what you can see in attachment. I don’t know where the extra-space comes from, neither how I am supposed to squeeze it. Interestingly, <tm> fields seem to work (no extra space) within <title> tags.
Any idea of a workaround or fix?
Thanks!
Vincent
EDIT: I was able to find a workaround:
But it doesn’t explain the extra space.
For whatever reason, an extra space seems to be inserted in <tm> fields, so that <tm tmtype="tm">Windows</tm> results in ‘Windows ™'' rather than 'Windows™'
Example:
Code: Select all
<li>Connect the terminal to the UART 0, corresponding to <codeph>COMa</codeph> in the <tm tmtype="tm">Windows</tm> enumeration.</li>
Code: Select all
<li class="- topic/li li">Connect the terminal to the UART 0, corresponding to <code class="+ topic/ph pr-d/codeph ph codeph">COMa</code> in the <span class="- topic/tm tm" tmtype="tm">Windows<span class="- topic/tmmark tmmark ">™</span></span> enumeration.</li>
Code: Select all
em,
span.tm,
span.tmmark,
span.keyword {
font-style: italic !important;
border: 1px green solid;
}
Thanks!
Vincent
EDIT: I was able to find a workaround:
Code: Select all
span.tmmark {
display: none;
}
span.tm:after {
content: '™';
}