I have code wrap length set to 80. When I look at Re^2: Multidimensional regular expressions, the code fragment embedded in the first paragraph is getting the + wrap-mark embedded.

Not sure - maybe it is more effort than it'd be worth - but I think that if a <code> block starts on a line that has preceding non-whitespace, codewrap should be disabled until the next newline.

Hugo

Replies are listed 'Best First'.
Re: Possible bug: code wrap
by diotalevi (Canon) on Feb 22, 2003 at 04:58 UTC
Re: Possible bug: code wrap (fixed)
by tye (Sage) on Feb 24, 2003 at 02:09 UTC

    It should be fixed now. It was also the case that multiple spaces inside on in-line <code> tags were not preserved. Now you can write "note the  extra space".

    Note that a huge run of code containing no newlines and no spaces will (still) not get wrapped and thus will make the node too wide, just like a huge run of non-code containing no whitespace does.

    Update: Actually, if you use a browser that supports soft hyphens (it seems that not much more than IE does so far, see Re: Space or Soft Hyphens (see code wrap), for example), then you might want to turn on "Auto Code Wrapping" in user settings so that long chunks of code w/o whitespace will have soft hyphens inserted even if the code is just part of a paragraph.

                    - tye
      I'm not entirely sure at this moment, but I seem to recall that Mozilla properly interprets them as well. Update: I was wrong; my Mozilla 1.2.1 release doesn't play.

      Makeshifts last the longest.

        According to Coruscate in Re: Space or Soft Hyphens, with Mozilla 1.01 "the text does not wrap". So, no, it doesn't unless a newer version has fixed that -- but according to bugzilla#9101, this has been identified as a bug but not fixed yet.

        But it is easy to check, just visit the link I provided earlier in this thread.

                        - tye
Re: Possible bug: code wrap
by xmath (Hermit) on Feb 22, 2003 at 10:43 UTC
    I agree with you that something ought to be done to prevent this from happening, although I'm not sure disabling code wrap is the correct thing to do. What if the line is really huge and devoid of any whitespace?

    Perhaps a better solution is to add preceding and trailing newlines to code sections that are longer than the wrap length to force them start at /^/m and end at /$/m. Or maybe only do this if they contain insufficient whitespace to wrap normally.. dunno..

    OTOH, you can write very long unwrappable pieces of text outside a code block too; so I guess turning off code wrapping in these cases isn't that bad