Newlines don't work.
Hi,
I am trying to output a newline, but this doesn't work:
echo "Line1\nLine2";
Before anyone says, I know HTML doesn't recognise newlines. I don't
need newlines in the rendered HTML, I need newlines in the SOURCE to
make it understandable.
Cheers,
Lister
.
Relevant Pages
- Re: CGI.pm and lost carriage returns
... input with tags instead of newlines, and nothing more: ... when displaying text in a browser. ... But the input was *NOT* meant to be HTML in the first place, ... designer wants user newlines to be retained in formatting. ... (comp.lang.perl.misc) - Re: [PHP]
dont work!!!
... > very lousy one. ... I do want to just make a html page. ... echo "This spans ... The newlines will be\noutput as well."; ... (php.general) - Re: [PHP]
dont work!!!
... Wang Feng wrote: ... echo ... The newlines will beoutput as ... In html you cannot use newlines for formating, ... (php.general) - Re: simple jsp question (out.println)
... Since your subject line mentions JSP (btw, it'd be a good idea to ... The println statement is, indeed, writing newlines. ... is that they aren't significant in HTML. ... Source" from your web browser when you test the page. ... (comp.lang.java.help) - Re: Buffered socket I/O with sysread-style blocking?
... You should get a zero return from sysread if it is interrupted. ... While most HTML pages ... count on newlines being in logical places. ... I would use sysread and buffer up the data received until the HTML page ... (comp.lang.perl.misc) |
|