Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: How to convert a text file to a HTML file

by RichardK (Parson)
on Jan 25, 2013 at 13:14 UTC ( #1015344=note: print w/replies, xml ) Need Help??


in reply to Re^3: How to convert a text file to a HTML file
in thread How to convert a text file to a HTML file

html generally ignores white space, so if you want it displayed in a particular layout then you need to add some markup.

Try wrapping your text in a pre tag i.e.  <pre>your text here</pre>

BTW the browser knows how to display different file types, but if your app tells the browser it's sending html and then just sends plain text, it's not surprising that you don't get the results you expected.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1015344]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2017-07-26 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (402 votes). Check out past polls.