Re: [PHP] HTML tab
On Thu, April 12, 2007 3:22 pm, Panquekas wrote: > I'm trying to indent my HTML, but I have an problem. > So, what I have now is: > > > (...) > > And I want something like: > > > (...) > > But when I use "\n\t" in a echo comes out something like this: > > > Hi > > > As you can see, the tab has 4 spaces and in the bottom as 8 spaces and > I > just want only 2 spaces in each newline. > How can I do that? A TAB is a TAB. It is not 2 spaces, nor is it 4. If whatever you are using to view the files is mis-translating the TAB in an unpredictable fashion, we can't fix that. Choose an editor that knows what TAB is. The browser "View Source", if that is what you are using, may do a complete re-write and "pretty print" (by its own stupid rules) of your HTML, depending on what browser and/or plug-ins to that browser you have. In other words, PHP just sends out a TAB character -- It's up to you and your viewer to do the right thing with that TAB character. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML tab
2007. 04. 12, csütörtök keltezéssel 21.30-kor Panquekas ezt írta: > I use "\n" an "\t". But the spaces in the tab are too long. I just > want 2 spaces in each line. look at what I said. "\n " is a "\n" and two spaces. is that not good? BTW include the list in the replies please greets Zoltán Németh > > On 12/04/07, Zoltán Németh <[EMAIL PROTECTED]> wrote: > 2007. 04. 12, csütörtök keltezéssel 21.22-kor Panquekas ezt > írta: > > Hello, > > > > I'm trying to indent my HTML, but I have an problem. > > So, what I have now is: > > > > > > (...) > > > > And I want something like: > > > > > > (...) > > > > But when I use "\n\t" in a echo comes out something like > this: > > > > > > Hi > > > > > > As you can see, the tab has 4 spaces and in the bottom as 8 > spaces and I > > just want only 2 spaces in each newline. > > How can I do that? > > > > well, you could use "\n " for the newlines, no? > > greets > Zoltán Németh > > > Thanks in advance. > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] HTML tab
2007. 04. 12, csütörtök keltezéssel 21.22-kor Panquekas ezt írta: > Hello, > > I'm trying to indent my HTML, but I have an problem. > So, what I have now is: > > > (...) > > And I want something like: > > > (...) > > But when I use "\n\t" in a echo comes out something like this: > > > Hi > > > As you can see, the tab has 4 spaces and in the bottom as 8 spaces and I > just want only 2 spaces in each newline. > How can I do that? > well, you could use "\n " for the newlines, no? greets Zoltán Németh > Thanks in advance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php