Bug when displaying code in old Murga forum?
Posted: Wed Sep 23, 2020 2:33 am
I know, it's a bit late for that. but I discovered it only yesterday.
When posting code it is customary to use the Code button. This would render the code "as is", preserving white-space and breaking lines only at linefeeds. Any characters would be allowed in such code box and BBCode would be rendered literally and not be converted by the BB software. It is the same as using the <pre> tag in HTML.
For good reasons text in such code box is supposed to be rendered in a monospace font. However now it appears that in the Murga forum it never was. Can it really be that in all these years it never worked as expected and nobody cared?
The point is that in the Murga forum the code box is configured to use font-family: Courier, 'Courier New', sans-serif, which means that users like me, who had the fonts Courier or Courier New installed in their system, the code would show in a monospace font, but for most (?) users the third option, sans-serif, would be used, and that's a proportional font.
I occasionally misused the code box to display a table, e.g in my post of May 22,2017. The table looks distorted in a pristine Slacko 5.6 because Courier is not installed. Does it render properly in other distros? One possibilty is that in other distros the MS Windows Courier font was mapped to another monospace font, but this is only a wild guess. At least it would explain why nobody complained.
When posting code it is customary to use the Code button. This would render the code "as is", preserving white-space and breaking lines only at linefeeds. Any characters would be allowed in such code box and BBCode would be rendered literally and not be converted by the BB software. It is the same as using the <pre> tag in HTML.
For good reasons text in such code box is supposed to be rendered in a monospace font. However now it appears that in the Murga forum it never was. Can it really be that in all these years it never worked as expected and nobody cared?
The point is that in the Murga forum the code box is configured to use font-family: Courier, 'Courier New', sans-serif, which means that users like me, who had the fonts Courier or Courier New installed in their system, the code would show in a monospace font, but for most (?) users the third option, sans-serif, would be used, and that's a proportional font.
I occasionally misused the code box to display a table, e.g in my post of May 22,2017. The table looks distorted in a pristine Slacko 5.6 because Courier is not installed. Does it render properly in other distros? One possibilty is that in other distros the MS Windows Courier font was mapped to another monospace font, but this is only a wild guess. At least it would explain why nobody complained.