PDA

View Full Version : vBcode: <pre> adds double-spacing (Please help)


The Piper
07-05-2002, 12:56 AM
Hello,

I have recently put all of the tablature we have on vB posts instead of static pages. I created a new vb code which was something like this: <pre><font size=+1>{param}</font></pre>. All seemed to be working fine.

Then, a few days ago, a user complained that the tabs were double-spaced. They weren't before. I checked, and I noticed that vB added an extra <br /> on the end of every line. Since I was using <pre> as well, that resulted in double spacing, which made the tabs difficult to read.

I then switched the vb code to <font face=courier>{param}</font>. The double spacing problem was solved, but another issue started: many of the tabs have blank spaces on them to align the chords with the lyrics, such as this:

E5 A5
Only dimly aware of a certain unease in the air
F#5 F#5

So by using this new vb code, I got something like this:

E5 A5
Only dimly aware of a certain unease in the air
F#5 F#5

Which also rendered the tabs useless.

So, I'm looking for a solution to this. I thought that I could either remove the <br /> on all tablature threads, but I don't know how to do that except manually, and we've got over 500 tabs, so that would be VERY time consuming. I tried to make a Replacement Set, so <br /> would be replaced by nothing. The problem with that is that I lose all of the line spacing on other threads.

I'd really appreciate your help on this.

Thanks a lot!

Admin
07-05-2002, 12:01 PM
Why don't you just use the [code] tag?