in reply to Probable Bug in PM while creating a node ( preview )!

Whatever... if this is a real bug, then of course it should be fixed. However just keep in mind that you're supposed not to be using <pre> in any case...

Indeed in my first times at the monastery I used <code> tags for actual Perl code and <pre> for other code-like stuff, like shell output. Now I just stick with <code> (or <c>) as per recommendation. I just suggest you to do the same unless you have some very good reason not to...

Replies are listed 'Best First'.
Re^2: Probable Bug in PM while creating a node ( preview )!
by rnahi (Curate) on Oct 07, 2005 at 13:20 UTC

    You can use <pre> tags when you want to show something that should stay aligned (like a ascii table or a program's output) but it is not actually code.

    The difference is that things in <code> tags are downloadable, while things in <pre> tags aren't.

      No, you shouldn't. Use of <pre> tags is tolerated for very narrow content. Perhaps one day, PerlMonks will make <pre> better than HTML intended, but, for now, it is best to just never use them here.

      Don't get hung up on the word "code". It can be quite useful to download output or other things. There are more differences between 'code' and 'pre' than whether or not 'download' is offered.

      And relax and let the viewer decide whether they want to see 'download' links for just a one-line item. If you don't want to see them, then fix your settings so you don't see them anywhere rather than using the problematic <pre> tag.

      Thanks.

      - tye        

Re^2: Probable Bug in PM while creating a node ( preview )!
by ForgotPasswordAgain (Vicar) on Oct 07, 2005 at 13:15 UTC
    Is there a way to make <code> not show the Download link? It looks dumb when you just want to show a single-line command.

      See Code Listing Settings, specifically, you can set the minimum number of lines before you get the link, or you can outright disable it.

      ---
      $world=~s/war/peace/g