The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
newlines added between html code
Hello,
I enabled html code on my forum posts, and I added some code to post and noticed that it added line breaks on each line. Is there a way I can prevent this or remove the line breaks from happenning? |
#2
|
|||
|
|||
Can you post an example?
|
#3
|
||||
|
||||
I have html enabled in my Staff forums and I have noticed that everytime I go back to edit it, there are extra page breaks in the code. I don't know that you can do anything about it. I simple keep a copy of it in a text file, edit it there, and when I go to edit it in the Staff thread, I copy/paste it from my text file so it doesn't have all those extra spaces.
|
#4
|
|||
|
|||
Here is an example post that I posted to my forums
Code:
if I post a html table <table> <tr> <td>hello</td> <td>world</td> </tr> <tr> <td>line </td> <td>2</td> </tr> </table> Code:
if I post a html table<br /> <br /> <table><br /> <tr><br /> <td>hello</td><br /> <td>world</td><br /> </tr><br /> <tr><br /> <td>line </td><br /> <td>2</td><br /> </tr><br /> </table><br /> <br /> The only way to fix this is to put all the code on a single line, but that makes it really hard/messy to edit... I'm not sure if there is a clean or easy way around this issue. I am thinking I would like to just disable the auto newlines for now... but only on select forums... |
#5
|
|||
|
|||
Does the same happen when you post here on vB.org?
|
#6
|
|||
|
|||
html is not enabled here so I wouldn't know.
|
#7
|
||||
|
||||
yes.. this is an old issue with HTML enabled in posts. Whenever you create a HTML table, it leaves lot of empty lines above as <br>'s are inserted.
A workaround with this problem, read Create a table within a post. Read the #4th post onwards there. Thanks P.S.: @Marco sir, I am not advertising. Its a solution for his problem. |
#8
|
|||
|
|||
my issue is not only with tables. Your solution to "switch" editor modes doesn't solve the underlying problem that unwanted <br/> are being inserted. I am looking for a way to track down where/why these are being inserted as I am using my forum to post articles and I will not be the only one trying to add html code.
Somewhere in the vbulletin's bb code parsing or postbit creation, these newlines are being added... where these are being added are not quite clear. |
#9
|
|||
|
|||
Enabling HTML to be posted is a huge security risk, and i strongly suggest you do not enable it.
|
#10
|
||||
|
||||
well I told you its just a workaround..
This problem IS an an old issue as I stated. Me too looking for a permanent solution for this. Thanks |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|