PDA

View Full Version : Stop Vb from entering <br/> tags


mihai11
04-20-2007, 09:22 AM
Hi,


I am editing some tables in HTML mode in VB and I see that VB is inserting some <br/> tags after each HTML line, effectively breaking the HTML.

A table like this:


<table>
<tr>
<td> td 1 </td>
<td> td 2 </td>
</tr>
</tr>


becomes:


<table> <br/>
<tr> <br/>
<td> td 1 </td> <br/>
<td> td 2 </td> <br/>
</tr> <br/>
</tr> <br/>



Is there a mod that can change this behavior ?

Marco van Herwaarden
04-20-2007, 09:25 AM
Sorry but i do not understand what you mean with "editing some tables in HTML mode"

Dismounted
04-20-2007, 09:39 AM
I think he means that whenever he edits a template, breaks (<br />) are added automatically. This is probably a cause of a hack as vBulletin doesn't do that.

mihai11
04-20-2007, 09:54 AM
No, neither of you understood the problem.

I am editing a regular post (from a thread) with HTML enabled. In that post I have some tables. I am editing the post with the "Standard Editor", not with the advanced WYSIWYG editor, because that one brakes HTML.

Is it more clear now ?

Dismounted
04-20-2007, 09:56 AM
This would probably a bug report for vBulletin.com.

mihai11
04-20-2007, 10:08 AM
No, it is not a bug. I already raised a support ticket about this and they confirmed that this is the normal behavior. The reason is that they cannot expect the users to manually enter </br> whenever required.

The only work-around is to remove all new lines from the HTML that you want to insert in a post. This can easily be done with a script but then you have to maintain the original documents (with new lines) in a separate location because it would be very hard to edit an HTML that spans on only 1 line.