Post Reply 
Embedded code blocks and Firefox non-breaking spaces
11-26-2022, 01:47 PM
Post: #6
RE: Embedded code blocks and Firefox non-breaking spaces
(11-26-2022 10:52 AM)Thomas Klemm Wrote:  
font-family: Courier

SPACE: U+0020
| |

NO-BREAK SPACE: U+00A0
| |

NO-BREAK SPACE: U+00A0 (converted to UTF-8 in Notepad++)
|          |

EN SPACE: U+2002
|          |

EM SPACE: U+2003
|          |


I added one item to your list above. It actually renders as a standard-width space when a mono-spaced font is used, so it can be used to keep indentation aligned (unlike the en- and em-space). Here's the same text, non-quoted:

font-family: Courier

SPACE: U+0020
| |

NO-BREAK SPACE: U+00A0
| |

NO-BREAK SPACE: U+00A0 (converted to UTF-8 in Notepad++)
|          |

EN SPACE: U+2002
|          |

EM SPACE: U+2003
|          |


I wonder if this issue would go away if we could somehow place the source code in an HTML <pre>...</pre> block. I don't believe MyBB supports that, though.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Embedded code blocks and Firefox non-breaking spaces - DavidM - 11-26-2022 01:47 PM



User(s) browsing this thread: 1 Guest(s)