in reply to Re: Problem creating a function
in thread Problem creating a function

I realise that your just correcting the OP's code to make it work, but doesn't converting \n's to <BR>'s and then tabs to spaces strike you as a strange thing to do?

In as much as, one assumes that the results are destined for display in a browser, but the browser will discard both spaces and tabs, so the second step seems pointess.


Examine what is said, not who speaks.

Replies are listed 'Best First'.
Re: Re: Re: Problem creating a function
by Willman023 (Scribe) on Dec 25, 2002 at 17:06 UTC
    Well BrowserUk, you would be correct if I was not working with a program that reads from a text file that's formated such that the paramaters are seperated by tabs, and the records by endlines. This program then takes the input from text file and displays to a browser, but I don't want to give you the impression that I'm heading down the wrong path to begin with.

    bW

      My point was that I understand the need to convert \n's to <BR>'s prior to display in a browser, but that I didn't understand why you were converting tabs to spaces, as in every browser I am familiar with, neither character will have any effect <clarification type="bad wording">both characters will have exactly the same effect</clarification> on what is rendered. If you were converting the \t's to 1 or more &nbsp;'s for example, it would have made more sense to me.


      Examine what is said, not who speaks.