Flint Heart on Tue, 2 Sep 2003 08:47:05 -0400


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Tabs


How about a <pre> if you just want to display preformated stuff.

N-Tropy

On Tue, Sep 02, 2003 at 12:11:46AM -0400, Paul wrote:
> Paul wrote:
> 
> >Question for Perl and/or PHP people: How could I get PHP to honor the 
> >\t in a text output from a Perl script?
> >
> >In PHP I'm using shell_exec() to call the Perl script and nl2br() to 
> >convert \n to <br />.  The \t is totally ignored.  I don't care if the 
> >final output is text or HTML.  Help?
> 
> 
> I didn't notce this before.  It looks like the tabs, or multiple spaces, 
> are there.  The browser removes all but one space as usual.  Maybe I 
> could check for \t and replace it with a few &nbsp; entities?  I'm 
> hoping there is a function for that!  What else?
> 
> _________________________________________________________________________
> Philadelphia Linux Users Group        --       http://www.phillylinux.org
> Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
> General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug
_________________________________________________________________________
Philadelphia Linux Users Group        --       http://www.phillylinux.org
Announcements - http://lists.netisland.net/mailman/listinfo/plug-announce
General Discussion  --   http://lists.netisland.net/mailman/listinfo/plug