Hi bart!

I'm using Firefox myself, and for me, the page appears similar to your screenshots.

The examples you provided are in code tags, thus, the code wrapper comes in place when there's a newline provided.

$mainform->tab->Page4->AddRichEdit... from Re^2: Change readonly status of Win32::GUI::RichEdit is not in code tags.
So this is no issue for code wrapper and probably cannot be fixed within PM.


Back to code without newline:

I'm using a modified version of demerphq's CSS (Re: Perl-blue theme (Aristotle/Demerphq Blue)), and so, code appears for me in the following form:
This is code

For the behavior of code wrapper, I'm glad that it doesn't wrap code when there is no newline.
For instance when code tags are used for mentioning functions or such within a sentence.

But this is just a matter of taste.

2 examples which are using "use strict;" in code tags:

Following use strict; is in code tags and appears in one sentence.

Now here is a sentence with
use strict;
and it is also containing
use warnings;
just to demonstrate that this is one sentence.


The second sentence would appear in the above form if code wrapper would wrap code even when there is no newline in it.
At least if you are using a similiar CSS.

Maybe there is a need for another tag you could use instead of <code></code> like <fixed></fixed> , which could be used in sentences instead of code tags, but there is no profit when users don't use it.


Update:
Corrected link-id to demerphq's CSS
and added inline CSS style to simulate the display of my CSS settings for code tags.
Update 2:
Removed inline CSS style because it didn't show up after my update.
It seems that I'm not able to show a simulation of my CSS settings (sigh).
In fact text in code tags should show up in a table with black background.

In reply to Re: code without newline doesn't wrap by Dietz
in thread code without newline doesn't wrap by bart

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.