Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^18: Making Perl Monks a better place for newbies (and others)

by PerlGuy(Tom) (Acolyte)
on Feb 06, 2020 at 01:22 UTC ( [id://11112472]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11112472]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found