CODE blocks are broken in "konqueror"

When viewed in “konqueror” or “rekonq”, a code block is a mess. It is not using a mono-space font, so columns do not line up making for poor readability.

Posting is okay. If I post in “rekonq” using a code block, it still looks a mess. But it is properly lined up in columns when viewed in “firefox”.

Perhaps this is really a “konqueror” bug. However, other sites do not behave the same way. Code blocks or “pre” blocks look fine (use mono-space fonts) at “dslreports.com” (as one example). So I suspect that this is a forum formatting issue.

Here’s an example thread that illustrated the problem:

Unable to access external hard drive
The code blocks look properly formatted when viewed with “firefox”, but not when viewed with “konqueror” or “rekonq”. Comment #4 in that thread was posted using “rekonq”.

On Sat, 29 Nov 2014 22:16:03 +0000, nrickert wrote:

> When viewed in “konqueror” or “rekonq”, a code block is a mess. It is
> not using a mono-space font, so columns do not line up making for poor
> readability.
>
> Posting is okay. If I post in “rekonq” using a code block, it still
> looks a mess. But it is properly lined up in columns when viewed in
> “firefox”.
>
> Perhaps this is really a “konqueror” bug. However, other sites do not
> behave the same way. Code blocks or “pre” blocks look fine (use
> mono-space fonts) at “dslreports.com” (as one example). So I suspect
> that this is a forum formatting issue.
>
> Here’s an example thread that illustrated the problem:
>
> ‘Unable to access external hard drive’ (http://tinyurl.com/lyyklkz)
> The code blocks look properly formatted when viewed with “firefox”, but
> not when viewed with “konqueror” or “rekonq”. Comment #4 in that thread
> was posted using “rekonq”.

I see what you’re seeing, looks like the fixed width font selected isn’t
fixed width.

To fix this:

  1. go to Settings -> Configure Konqueror -> Appearance
  2. Select the “Fonts” tab
  3. Change the “Fixed font” setting to “Courier New” (or whatever fixed-
    width font you want).
  4. Click OK.

That fixed it for me.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Very interesting.

The originally configured font showed as “Liberation Mono”. And one certainly would expect that to be a mono-spaced font.

So I changed to Courier. But nothing changed. So I shutdown and restarted konqueror. And then it was fine, except that Courier is not a good font for this. So I changed to Deja Sans Mono, and again shutdown and restarted konqueror. And that looked a lot better.

And then I changed it back to Liberation Mono, shutdown and restarted konqueror. And it was still fine.

So it looks as if konqueror is telling us lies about its fonts, until we actually configure them to force the issue. And it was the same for “rekonq”.

Maybe I will report this as a bug.

On Sun, 30 Nov 2014 13:56:01 +0000, nrickert wrote:

> hendersj;2679794 Wrote:
>> 1. go to Settings -> Configure Konqueror -> Appearance 2. Select the
>> “Fonts” tab 3. Change the “Fixed font” setting to “Courier New” (or
>> whatever fixed-
>> width font you want).
>> 4. Click OK.
>
> Very interesting.
>
> The originally configured font showed as “Liberation Mono”. And one
> certainly would expect that to be a mono-spaced font.
>
> So I changed to Courier. But nothing changed. So I shutdown and
> restarted konqueror. And then it was fine, except that Courier is not a
> good font for this. So I changed to Deja Sans Mono, and again shutdown
> and restarted konqueror. And that looked a lot better.
>
> And then I changed it back to Liberation Mono, shutdown and restarted
> konqueror. And it was still fine.
>
> So it looks as if konqueror is telling us lies about its fonts, until we
> actually configure them to force the issue. And it was the same for
> “rekonq”.
>
> Maybe I will report this as a bug.

Sounds like it, yeah.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Reported as Bug 907719.