![]() |
whitespace inside CODE tag is not preserved
The CODE tag is supposed to be rendered in a monospace font and keep all whitespace intact, intended for use when showing programming source where indentation makes things easier to read (and in a language like Python is actually semantically important), and still useful on non-programming sites like FlyerTalk for showing data in tabular form, maybe with columns of words/numbers aligned, for example:
Code:
this thisCode:
this this |
OK, so how did you make the first block there? I can't replicate something I don't know how to do and need to be able to understand to explain to tech.
|
Originally Posted by IBJoel
(Post 32904656)
OK, so how did you make the first block there?
I clicked on "Source" to enter raw source editing mode, lined it all up, and clicked Post without going back to WYSIWIG mode. I *think* it works if you post in WYSIWIG mode but it's harder to line things up visually because it's not in a monospace font then. Trying this out: Code:
abc def |
Ok, well not sure why 3 spaces seems to have ballooned to 5 in the first few rows.
But anyway, here's what it looks like, as soon as I click "Edit" (but before clicking or typing anything else): https://cimg8.ibsrv.net/gimg/www.fly...4b009b6757.png although that section is rendered in a monospace font, note that all the whitespace has collapsed down to a single space. (I didn't click "Save" so the whitespace in the previous post is preserved) Not the most important bug in the world, but it's a hassle if you go back and edit a previous post because of typos or to correct/add info etc. and now you have to line everything up again in the table. I have not verified, but would suspect, that this bug affects wikis as well since it is the same editor? |
Code:
test normalCode:
test aligned |
I'll ask tech to see if this can be fixed, but thankfully it's a small use case with an easy self-fix.
|
Originally Posted by IBJoel
(Post 32905087)
I'll ask tech to see if this can be fixed, but thankfully it's a small use case with an easy self-fix.
In any case thanks for passing this on! |
| All times are GMT -6. The time now is 1:09 am. |
This site is owned, operated, and maintained by MH Sub I, LLC dba Internet Brands. Copyright © 2026 MH Sub I, LLC dba Internet Brands. All rights reserved. Designated trademarks are the property of their respective owners.