Hi, How is Carriage return handled on this site? This text is entered with CR using Linux, Firefox 3.0 on http://perlmonks.org/index.pl? There are no CR on the preview? /Simon

Replies are listed 'Best First'.
Re: Carriage return
by kennethk (Abbot) on Apr 10, 2009 at 15:37 UTC

    Please read Writeup Formatting Tips. All white space in a text block is subject to reformatting at the site's discretion, including carriage returns. If you wish to compose multiple paragraphs, you can use paragraph tags (<p>, </p>). If you wish to post code, you can wrap it in code tags (<code>, </code>) in order to exactly preserve all characters and avoid escaping characters like [.

Re: Carriage return
by FunkyMonk (Bishop) on Apr 10, 2009 at 15:41 UTC

      You can also use <p> at the beginning of paragraphs, where they belong.

      Just don't follow the bizarre habit of sprinkling </br>s in your post, and fail to notice they don't work. This site isn't XHTML, but if you want to make your post XHTML-compliant, then it's <br/> that you're looking for.

      sas
Re: Carriage return
by Bloodnok (Vicar) on Apr 10, 2009 at 15:38 UTC
    Hmmm,

    Does the prescence of < & > chars in the text box or the references to HTML give you no clues ???

    Try <br> or <p> ...

    A user level that continues to overstate my experience :-))
      We had a post somewhat recently about putting an html quicktip box beside the form. It wasn't adopted, so do you feel this reaction is fair? How many badly formatted posts do we get per week? Maybe the clue isn't that great?
        From a whitespace (BR/P) POV, I don't think it's unduly fair.

        However, WRT to your point about badly formatted posts, the majority of them [badly formatted posts] that I've seen appear to be down to the inappropriate use/lack of CODE tags - which, AFAIK, aren't standard HTML markup.

        Some posters do try and address the problem, by using PRE tags, the majority of which are then, to some degree, castigated for it - normally by monks that are better versed in the arts of posting &/or markup.

        Such use [of PRE tags] is understandable, since the hint If you think you're going to use <pre> tags — don't! Use <code> tags instead!... is way off the bottom of the visible page on my browser (and I use quite a small font size - the line Posts may use any of the... is typically only partially visible at the bottom of the page).

        Maybe a solution could be a browser popup window, that can be enabled or disabled in the monks home node (or per-session and the setting maintained via a cookie for AM), containing either (an expanded version of) the hints or possibly the editing page...

        A user level that continues to overstate my experience :-))
Re: Carriage return
by ikegami (Patriarch) on Apr 10, 2009 at 18:48 UTC

    Just fine. They are folded into a space just as they should be in HTML.

    • Put a <p> at the beginning of every paragraph.
    • Wrap code, data and other preformatted text in <c>...</c> tags.