Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Monastery Gates page is too wide

by hossman (Prior)
on Sep 29, 2004 at 18:43 UTC ( #395099=note: print w/replies, xml ) Need Help??

in reply to Monastery Gates page is too wide

You're probably seeing what you see because of your Code-Wrapping settings.

If you aren't using "Auto Code Wrapping" and if "Code Wrap Length" is large (or blank so you get the default of 70) then the width of the main body of the monastery gates is determined by how how long the lines of code are in nodes currently on the front page.

Even if you are using "Auto Code Wrapping" then he browser is making the call on which soft-hyphen to wrap at, so your results may vary.

If you uncheck "Auto Code Wrapping" and set "Code Wrap Length" to something small (like 40) you'll find that the Gates are very slim indeed.

Replies are listed 'Best First'.
Re^2: Monastery Gates page is too wide (causes)
by tye (Sage) on Sep 30, 2004 at 00:40 UTC
    If you aren't using "Auto Code Wrapping" and if "Code Wrap Length" is large (or blank so you get the default of 70) then the width of the main body of the monastery gates is determined by how how long the lines of code are in nodes currently on the front page.

    What you say here is incorrect. Based on your later statements, I think you meant to s/aren't/are/ and are just a little inaccurate on the last part (it isn't the length of lines but the length of unbroken runs of non-whitespace characters, roughly).

    The most common reasons for pages rendering too wide are:

    1. Someone put a long line inside of a <pre> tag. This will affect everyone. /msg the author or solicit one of the janitors to fix the problem, usually by replacing the <pre> tags with <code> tags.
    2. Someone put a really long string containing no whitespace in their node. This will affect everyone, though some browsers wrap on certain non-whitespace characters (and one browser, IE, is crazy enough to not wrap on certain types of whitespace such as spaces followed by slashes). Similar procedure for requesting a fix, which would probably be putting the really long string into <code> tags with a newline.
    3. The viewing monk has "Auto Code Wrap" turned on, some code in a node contains a long string that contains no whitespace, and the viewing monk is either using a browser that doesn't support soft hyphen or has "Code Wrap Length" set fairly high. The most common reason used to be that the browser doesn't support soft hyphen (for quite a while, only IE supported soft hyphen, but now many of the newest browser releases support it).

      This will only affect the monk who has their settings misconfigured. If you see a very wide node and report it in the chatterbox and others don't see the problem, then you should check for this problem and probably turn off "Auto Code Wrap" (or upgrade your browser or set your code wrap width to something likely between 20 and 40).

    4. The viewing monk simply has code wrapping disabled (and a node contains code that contains long lines). Like the previous item, this will only affect the monk with these settings so check yours (and turn code wrapping back on).

    Clean this up and it might make a nice "faqlet" (site documentation node) on "Why does the page render so wide?" (or whatever).

    - tye        

      Firefox 1.0.4 still doesn't support &#173 aka &shy; (which PM uses), but it does support &#8203 and <wbr>.
      So, this means Auto Code Wrap is currently broken in Firefox.

        Soft hyphen is better, as it allows the line break to be displayed such that the viewer will realize that there isn't whitespace there.

        We should add a user setting for which "break" method to use:

        1. Soft hyphen
        2. <wbr />
        3. zero-width space
        4. space
        with the current "auto code wrap" users getting "soft hyphen" and everyone else getting "space". Then the CB should use the selected method instead of the way it currently always uses space and "auto code wrap" should, of course, use the selected method.

        I doubt I'll be getting to this any time soon. Others might.

        - tye        

Re^2: Monastery Gates page is too wide
by dmmiller2k (Chaplain) on May 09, 2005 at 12:16 UTC
    Nope, sorry. This was happening long before there was such a thing as code wrapping, I just never took the time to figure it out or post a query about it before. Thanks anyway.


    Procrastinate NOW! Don't put it off... --Ellen Denegerous

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://395099]
[choroba]: becuase the hardware always changes beneath it, at least
[Discipulus]: yes i think I know a bit about you: if I would had the competence and the will to accomplish something like MCE.. i'd be running here and there with flags and t-shirt about.. ;=)
Lady_Aleena rolls over on the sofa, pulling a light blanket over her, and falls to sleep.
[Discipulus]: but world is fun beacause it is manifold
[Discipulus]: anyway congratulations marioroy imho your work is very good and useful
[marioroy]: After the release (ETA ~ 1 week) will post on PM on the refinements made.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (12)
As of 2017-05-26 09:26 GMT
Find Nodes?
    Voting Booth?