Post Reply 
Embedded code blocks and Firefox non-breaking spaces
11-26-2022, 02:40 PM
Post: #8
RE: Embedded code blocks and Firefox non-breaking spaces
(11-26-2022 01:47 PM)DavidM Wrote:  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.

I've created an HTML-page with the following body:
PHP Code:
<pre>
|          |
|&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|
|
          |
</
pre
The first line contains ordinary and the last line contains non-breaking spaces.

Then I started the Python web-server with:
Code:
python3 -m http.server

In Firefox I copied the page and this looks good:
the first line contains ordinary spaces and the other two contain non-breaking spaces.
Also the indentation looks fine, even in the first line.
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 - Thomas Klemm - 11-26-2022 02:40 PM



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