Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
line breaks not valid?!?
after looking around for quite some time now, I still didn’t find an answer why the linebreaks in my code are all rendered as < br>, not valid < br /> (without the spaces), even if I noted < br /> in the page templates/forms. Is this common? How can I change it?
Last edited by BZ (2006-01-06 22:41:02)
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
#2 2006-01-06 23:37:23
- zem
- Developer Emeritus
- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: line breaks not valid?!?
why the linebreaks in my code
What code? Where? What version? Please be specific.
Alex
Offline
Re: line breaks not valid?!?
These are my specs:
Version Textpattern: 4.0.3 (r1188)
last_update: 2006-01-06 12:08:29/2006-01-06 11:57:55
PHP-Version: 4.4.1
Register globals: 1
MySQL: 4.0.23-Max-log
As far as I can see, they are rendered wrongly wherever I use them:
In the default page template, in the articles, the comment form and the comments. Must be a global setting but I haven’t found anything to change this so far.
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
Re: line breaks not valid?!?
In the default page template, in the articles, the comment form and the comments.
I don’t understand this. Do you mean that manually entered <br />
elements get turned into <br>
? That’s hardly imaginable.
I tested the Textile formatting in 4.0.3 and it spits out <br />
just fine.
Offline
Re: line breaks not valid?!?
> andreas wrote:
I don’t understand this. Do you mean that manually entered
<br />
elements get turned into<br>
?
Yes, I mean exactly that. Do I have to use textile? Maybe that’s the matter because I typed them in manually.
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
#6 2006-01-07 22:27:14
- els
- Moderator
- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: line breaks not valid?!?
BZ wrote:
Do I have to use textile? Maybe that’s the matter because I typed them in manually.
In the ‘write’ screen, when Textile is on (see under Advanced options) a line break is converted to <br />
. A double line break becomes <p>
. In other places, like in forms or in the page template, you’ll have to enter the html tags manually.
I tested in 4.0.3 and I really don’t see any <br>
.
Last edited by doggiez (2006-01-07 22:28:09)
Offline
Re: line breaks not valid?!?
Maybe that’s the matter because I typed them in manually.
But even if you are in the textarea of the Write tab, manually entered <br />
would not end up as <br>
. A big question mark is hovering above the trees.
Offline
Re: line breaks not valid?!?
Well, problem solved…
It’s a browser bug (using FF 1.5) that shows the wrong code when I hit “view source of selected area”, or whatever it’s called in english. When source is viewed with Ctrl+U, everything’s ok.
I have already heard that Firefox is a little buggy with this, but I didn’t have it in mind here.
The page fully validates as XHTML 1.0 Strict now. But the validation service did tell me at an earlier stage that my line breaks were invalid. So I don’t know what it was, but I don’t care either…
Sorry for stupid thread :D
Diagnosis:
Version Textpattern: 4.0.3 (r1188)
PHP-Version: 4.4.1
Hosting: all-inkl.com
Offline
#9 2006-01-08 03:15:54
- nardo
- Member
- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: line breaks not valid?!?
that FF bug got me too : )
Offline
Re: line breaks not valid?!?
Ok, I see. Thanks for resolving it here.
Offline
Pages: 1