EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Site Forums > Site Help & Suggestions

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 11-15-2007, 08:45 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default space added to long strings at arbitrary positions

The site is adding spaces to long words and I do not understand the logic behind it. Below are four separate lines of exactly the same length as examples. The space it added by the site when you display the post. Interestingly the position of the space depends on the characters in the string:

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A

BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBBBBBBBBBB

12345678901234567890123456789012345678901234567890123456789012345678901234567890 12345678901

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX X
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
  #2  
Unread 11-15-2007, 10:29 AM
lordebon lordebon is offline
Fetish Core author
This person is a EQ2Map developer.
Featured
 
Join Date: Jun 2005
Server: Crushbone
Posts: 2,667
Default

It appears to be happening after the nth character. The reason it appears different is the font is not monospace. When you change it so that every letter takes up the same width...

AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB BBB
12345678901234567890123456789012345678901234567890123456789012345678901234567890 1234567890


Using that numerical scale, it seems a space is being placed after every 80th character.
  #3  
Unread 11-15-2007, 10:36 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Ah, you are right of course. I thought I had made them the same length but have apparently messed up. I'm still not sure if that function is useful since browsers will just break the line anyway if it is too long.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
  #4  
Unread 11-15-2007, 12:11 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Yea browsers will brake the line when needed but it is common place to brake on 80 and it is known point of brake so you can figure that into your text. However for CODE and PHP tags I don't think it should be used.
__________________
Landiin's EQ2MAP Updater Discussion Download
  #5  
Unread 11-15-2007, 12:16 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Code and php boxes are fine, but I don't like them since they are not much longer than 80 characters. Maybe I'll change the point of this thread then to request a bigger code box (why not just 100% of window width?).
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
  #6  
Unread 11-15-2007, 12:17 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Yes, try resizing your window, you'll notice it will get so small until it reaches that break. The break is so users on smaller resolutions, won't always have to scroll horizontally as much.
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:21 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI