View Full Version : Anybody know why an <br /> tags are getting added.
kenmacny
12-31-2008, 06:08 AM
I've checked the source code for the pages after I edit a post and a <br /> tag is getting added between each graphic in my post. Very weird. I don't see them in the board post editor but when I do a view source for the entire page they are there. I've tried it with clickable thumbs and just plan old images and I still get them.
Any ideas? Does this happen to anyone else or am I just special?
Thanks, Ken
kenmacny
12-31-2008, 06:16 AM
Ok, looks like its happened to Habib's sales thread as well so it just may be glitch/feature of the board software here at the corral.
Still if anyone has a solution to it I'm all ears.
Thanks, Ken
Let me see if I can find out anything about that for you ken.
I think it may be a glitch with the board, but I will try and find a better answer than that for you!
Hoss
kenmacny
12-31-2008, 01:58 PM
Thanks Hoss. I know you are busy so I appreciate it. Ken
Quato
01-06-2009, 12:45 AM
I've checked the source code for the pages after I edit a post and a <br /> tag is getting added between each graphic in my post. Very weird. I don't see them in the board post editor but when I do a view source for the entire page they are there. I've tried it with clickable thumbs and just plan old images and I still get them.
Any ideas? Does this happen to anyone else or am I just special?
Thanks, Ken
If you are getting this...
<br> It is html code to designate a line break or a 'return' key. Without that, the browser would run everything together when it displays your message. HTML ignores spaces outside of tags. Hitting the space key 50 times would still give you just one space. If you are getting the BR tag with the backslash after it in the exact manner you posted, them my guess is that the software is not parsing some info correctly.
Most HTML tags are paired with a tag to tell it to end it's function. They have a forward slash in them. The "BR" (linebreak) tag does not require a mating tag to be paired with it. If it did it would look like this
</br>
Q
kenmacny
01-06-2009, 12:53 AM
<br> is html code to designate a line break or a 'return' key. Without that, the browser would run everything together when it displays your message. HTML ignores spaces outside of tags. Hitting the space key 50 times would still give you just one space. If you are getting the BR tag with the backslash after it in the exact manner you posted, them my guess is that the software is not parsing some info correctly.
Lets see if this board accepts the code tag....
Q
Hey Q,
I'm with you on the HTML explanation, thats not in question. Whats happening is the comic corral board is adding the <br /> tag after img tags when you edit an existing post. If you look at my sales thread or habib's or anyones thats edited their post you will see the images start to "drift" away from each other as the 'returns' are getting added. Very weird. Possibly a small glitch. Not a big deal, but does effect a post that needs editing often.
Quato
01-06-2009, 01:05 AM
I'm not seeing it, but one of the first things I did after joining the board was to set my rich text editor to bb code instead of HTML.
I see no need to post in HTML and it just means you have to deal with more tags or broken tag pairs when replying. If a linebreak tag is appearing (whether formatted correectly or not) then it means someone hit the return key when typing their original message. If the tag is coming up formatted incorrectly, then the board has parsed the "return key" keystroke incorrectly.
Q
kenmacny
01-06-2009, 02:07 AM
I'm not seeing it, but one of the first things I did after joining the board was to set my rich text editor to bb code instead of HTML.
I see no need to post in HTML and it just means you have to deal with more tags or broken tag pairs when replying. If a linebreak tag is appearing (whether formatted correectly or not) then it means someone hit the return key when typing their original message. If the tag is coming up formatted incorrectly, then the board has parsed the "return key" keystroke incorrectly.
Q
Well, in my posts with multiple pictures, single covers, you will see some of them have 3-4 "returns" between them. They started with one. If you dig into the source for the page you can see the added "returns" in the HTML/XTML between each image.
I'm not editing in HTML. In fact if I just open the post to edit and just hit save, with out changing anything it adds them. Plus the <br /> isn't a broken tag, its just the way you close it in XTML. So I think the board software has a mind of its own.
Thanks for trying though. Ken
Quato
01-06-2009, 03:52 AM
Well, in my posts with multiple pictures, single covers, you will see some of them have 3-4 "returns" between them. They started with one. If you dig into the source for the page you can see the added "returns" in the HTML/XTML between each image.
I'm not editing in HTML. In fact if I just open the post to edit and just hit save, with out changing anything it adds them. Plus the <br /> isn't a broken tag, its just the way you close it in XTML. So I think the board software has a mind of its own.
Thanks for trying though. Ken
My exposure to XML is minimal but I see that now. The tag should have no space in the middle. ( http://www.javacommerce.com/displaypage.jsp?name=tags.sql&id=18238 ). I'm still betting the software is just parsing something incorrectly. From what I used to read about XML, it has to be 100% compliant or it won't work properly. It seems sort of screwy for the editor to have to convert a sloppy tag format into a strict one. To me that opens the door for buggy results.
Q
kenmacny
01-06-2009, 04:14 AM
My exposure to XML is minimal but I see that now. The tag should have no space in the middle. ( http://www.javacommerce.com/displaypage.jsp?name=tags.sql&id=18238 ). I'm still betting the software is just parsing something incorrectly. From what I used to read about XML, it has to be 100% compliant or it won't work properly. It seems sort of screwy for the editor to have to convert a sloppy tag format into a strict one. To me that opens the door for buggy results.
Q
Actually the tag does have a space.
http://www.w3schools.com/TAGS/tag_br.asp
Again, I'm not typing any HTML into the editor to convert, heck I'm not typing anything at this point, just saving the post again and the <br /> tags are being added.
Look, if you want to see for yourself do this. Open a new thread. Create a post with 3 images with a return in between each. Use the editors graphic insert tool. Now save it. Looks good right? Now edit and then save again. Now you have an extra return between each image. Do it again, another return, etc... Its adding return tags on its own, like the Terminator or something. Thats all I'm saying.
I've done it down in the Comics Corral Support Board thread if you want to see what I mean.
Quato
01-06-2009, 05:22 PM
Actually the tag does have a space.
http://www.w3schools.com/TAGS/tag_br.asp
Again, I'm not typing any HTML into the editor to convert, heck I'm not typing anything at this point, just saving the post again and the <br /> tags are being added.
Look, if you want to see for yourself do this. Open a new thread. Create a post with 3 images with a return in between each. Use the editors graphic insert tool. Now save it. Looks good right? Now edit and then save again. Now you have an extra return between each image. Do it again, another return, etc... Its adding return tags on its own, like the Terminator or something. Thats all I'm saying.
I've done it down in the Comics Corral Support Board thread if you want to see what I mean.
I believe you. I hated the WYSIWYG editor. If I were you I'd change your default to the standard editor. It a miscellaneous option under your profile settings.
Q
kenmacny
01-06-2009, 05:36 PM
I believe you. I hated the WYSIWYG editor. If I were you I'd change your default to the standard editor. It a miscellaneous option under your profile settings.
Q
Definitely going to try that Q. Thanks, Ken
Quato
01-06-2009, 08:50 PM
Definitely going to try that Q. Thanks, Ken
Let me know if you like it better.
Q
fulltimer56
01-16-2009, 05:39 PM
I know what Ken is talking about. Everytime I go into one of my postings to edit, it seems to be adding space and or <br> in my text?
Linda
Powered by vBulletin® Version 4.1.9 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.