Some investigation proves, that this is just a further 'Mozilla/FireFox don't render soft hyphens like other browsers' problem. Using Mozilla, and turning PMs code wrapping options on (Auto Code Wrap, plus an entry in the Code Length field); makes PM output soft hyphens at appropriate places in the code, but Mozilla ignores these.
Turning the Code Wrapping options off, PM turns sections of code with any newlines in them, into pre tags, and adds soft hyphens AND extra newlines where the code should wrap. (Default 70 long, unless a value is set in Code Length). Sections without newlines don't get either of these.
Aside from discussions about why Mozilla doesnt interpret soft hyphens like the rest, how can we solve this problem? I'm currently wondering if there's a good reason why code sections without newlines doesnt get such added, just like sections with newlines, since it clearly doesnt wrap for a lot of users.
castaway looks over at tye
C.
discussion of softhyphens as wrapping characters
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.