in reply to Re^17: Making Perl Monks a better place for newbies (and others)
in thread Making Perl Monks a better place for newbies (and others)

"that Venn does not include anyone who thinks this is a fix for anything: s/\n/<br>/g—"

I believe I said: s/\n/<br\/>/g; which is something of a simplification, but what in principle do you think is wrong with it. (<BR /> as a general replacement for "return".)

Tom

Replies are listed 'Best First'.
Re^19: Making Perl Monks a better place for newbies (and others)
by LanX (Saint) on Feb 06, 2020 at 01:45 UTC
    > what in principle do you think is wrong with it. ( <BR /> as a general replacement for "return".)

    Substituting more than 2 "\n" with <p> is OK, I'm doing this for years already.

    But <br> for every single "\n" is not a good idea, because HTML must be capable to adapt to different screen-sizes.

    That's basically why <pre> is frowned upon.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

    PS: 2 thirds of all your posts in 11 years are in this thread. Impressive!

    A reply falls below the community's threshold of quality. You may see it by logging in.