I have a repository in which the formatting of the README.md results in an inappropriate line break that I’m trying to defeat. The specific failure is a break between a hyphen and a compiler option, what should be -lreadargs is instead rendered as - at the end of a line, with the lreadargs at the beginning of the next line.
I’ve made several attempts to wrap the text in some non-breaking element:
- <nobr> I enclosed the offending text in <nobr>. When that failed to fix the problem, I looked at the HTML source and saw that the <nobr> was not included in the translation. It’s non-standard HTML, so fine.
- <span style=“white-space:nowrap”> also failed. Looking at the HTML source, I could find the span element enclosing my text, but the white-space attribute was left out.
- <span class=“svg-tip-one-line”> I looked at the CSS file included at the top of the HTML source, and looked for a simple class that included white-space:nowrap. The style attribute was omitted from the span element.
I think most people would agree that having a line break between an option’s hyphen and option name is unacceptable. Is there any way to prevent it?