vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   vBcode: <pre> adds double-spacing (Please help) (https://vborg.vbsupport.ru/showthread.php?t=40673)

The Piper 07-05-2002 12:56 AM

vBcode: <pre> adds double-spacing (Please help)
 
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:

Code:

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:

Code:

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?


All times are GMT. The time now is 06:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00932 seconds
  • Memory Usage 1,709KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete