• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:19
CEST 10:19
KST 17:19
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Power Rank - Esports World Cup 202550RSL Season 1 - Final Week9[ASL19] Finals Recap: Standing Tall15HomeStory Cup 27 - Info & Preview18Classic wins Code S Season 2 (2025)16
Community News
BSL Team Wars - Bonyth, Dewalt, Hawk & Sziky teams4Weekly Cups (July 14-20): Final Check-up0Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission re-extension4
StarCraft 2
General
Power Rank - Esports World Cup 2025 RSL Revival patreon money discussion thread Jim claims he and Firefly were involved in match-fixing RSL Season 1 - Final Week The GOAT ranking of GOAT rankings
Tourneys
Esports World Cup 2025 Sparkling Tuna Cup - Weekly Open Tournament Sea Duckling Open (Global, Bronze-Diamond) FEL Cracov 2025 (July 27) - $8000 live event RSL: Revival, a new crowdfunded tournament series
Strategy
How did i lose this ZvP, whats the proper response
Custom Maps
External Content
Mutation #239 Bad Weather Mutation # 483 Kill Bot Wars Mutation # 482 Wheel of Misfortune Mutation # 481 Fear and Lava
Brood War
General
BW General Discussion ASL20 Preliminary Maps Ginuda's JaeDong Interview Series BGH Auto Balance -> http://bghmmr.eu/ [Update] ShieldBattery: 1v1 Fastest Support!
Tourneys
CSL Xiamen International Invitational [Megathread] Daily Proleagues [CSLPRO] It's CSLAN Season! - Last Chance [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET
Strategy
Simple Questions, Simple Answers I am doing this better than progamers do.
Other Games
General Games
Stormgate/Frost Giant Megathread Nintendo Switch Thread [MMORPG] Tree of Savior (Successor of Ragnarok) Path of Exile CCLP - Command & Conquer League Project
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread The Games Industry And ATVI Stop Killing Games - European Citizens Initiative
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
[\m/] Heavy Metal Thread Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
2024 - 2025 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023 NBA General Discussion
World Cup 2022
Tech Support
Installation of Windows 10 suck at "just a moment" Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
Ping To Win? Pings And Their…
TrAiDoS
momentary artworks from des…
tankgirl
from making sc maps to makin…
Husyelt
StarCraft improvement
iopq
Socialism Anyone?
GreenHorizons
Customize Sidebar...

Website Feedback

Closed Threads



Active: 646 users

word wrapping bug

Forum Index > Website Feedback
Post a Reply
overpool
Profile Joined April 2008
United States191 Posts
July 02 2008 07:58 GMT
#1
Hi,

Sorry if this is a dupe; I couldn't find it in any recent threads.

Anyways, it seems that super long words screw up the site's layout. Example: this page is too wide in FF3 and Safari. The solution would be to allow individual words to be wrapped if necessary.

It's not a big deal; just thought I would bring it to your attention.

+ Show Spoiler +

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
yay i love tl events
CharlieMurphy
Profile Blog Joined March 2006
United States22895 Posts
July 03 2008 07:59 GMT
#2
thats why there is the URL bbcode.
..and then I would, ya know, check em'. (Aka SpoR)
overpool
Profile Joined April 2008
United States191 Posts
July 05 2008 07:41 GMT
#3
On July 03 2008 16:59 CharlieMurphy wrote:
thats why there is the URL bbcode.

I'm confused... Did you even look at the link I gave? The problem wasn't a long URL.

But anyways, this isn't really a big deal. I just posted because it doesn't make sense that 1 post should be able to mess up the style of the whole page.
yay i love tl events
R1CH
Profile Blog Joined May 2007
Netherlands10340 Posts
July 05 2008 08:24 GMT
#4
There isn't really an effective way to do this other than to break up long words in either the DB or on output, which could break things like URLs or BBCode. Ideally there would be some nice CSS to force word breaks, but sadly there isn't.
AdministratorTwitter: @R1CH_TL
caution.slip
Profile Blog Joined June 2007
United States775 Posts
Last Edited: 2008-07-05 12:21:56
July 05 2008 12:20 GMT
#5
you could put it in the TL commandments and consider doing that rude posting

cause come on...when is more than one exclamation mark ever necessary?

can also make exceptions for highly emotional threads
Live, laugh, love
overpool
Profile Joined April 2008
United States191 Posts
July 06 2008 02:29 GMT
#6
On July 05 2008 17:24 R1CH wrote:
There isn't really an effective way to do this other than to break up long words in either the DB or on output, which could break things like URLs or BBCode. Ideally there would be some nice CSS to force word breaks, but sadly there isn't.

ok thanks, that's what I was wondering. Shame CSS doesn't have a way to "contain" text inside of a <td> element with an absolute width.
yay i love tl events
funkie
Profile Blog Joined November 2005
Venezuela9374 Posts
July 06 2008 05:32 GMT
#7
unless you add a Div inside the td of the table where the content goes, and the set the width of the div in css.

that would most likely solve the problem ~~;
CJ Entusman #6! · Strength is the basis of athletic ability. -Rippetoe /* http://j.mp/TL-App <- TL iPhone App 2.0! */
SonuvBob
Profile Blog Joined October 2006
Aiur21549 Posts
July 06 2008 06:19 GMT
#8
But then we'd need to finally fix big quoted images. :p

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
[image loading]
Administrator
kkris
Profile Blog Joined June 2008
United States19 Posts
Last Edited: 2008-07-08 16:40:55
July 08 2008 16:36 GMT
#9
On July 06 2008 15:19 SonuvBob wrote:
But then we'd need to finally fix big quoted images. :p

<div style="width: 590px; overflow: hidden">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Show nested quote +
[image loading]
</div>


Here is what I did over at VG..

Layout breakers..
"ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss"
..turns into..
http://vilegaming.com/forums.php?m=posts&p=98818#98818
..the code..
function wraptext($str, $wrap=128)
{
if (!empty($str)) { $str = preg_replace("/([^\n\r ?&\.\/<>\"\\-]{80})/i"," \\1\n", $str); }
return($str);
}

..then use..
$post_content = wraptext($post_content);

..or..
$post_content = wraptext($post_content, 60);

The above function works clean and handles all non-alphabetic characters as it should.

Quoting images..
http://vilegaming.com/forums.php?m=posts&p=98357#98357
..when quoted turns into..
http://vilegaming.com/forums.php?m=posts&p=98820#98820
..the code..
$search = array('[*img*]', '[*/img*]');
$replace = array('Image: ', '');
$post_content = str_ireplace($search, $replace, $post_content);

Note: Remove the *s in the above code.
You could also use preg_replace instead of str_ireplace, but then you would need to add in the regex expressions.
I'm Spartan and waiting for the reban hammer to hit me good.
MasterOfChaos
Profile Blog Joined April 2007
Germany2896 Posts
Last Edited: 2008-07-08 17:30:19
July 08 2008 17:27 GMT
#10
and does it handle urls,imgs etc as it should? And can you still break the layout with quotestacks?
you could also use the brutal solution. "overflow:hidden"
With most browsers "overflow:auto" would also work. It usually adds scrollbars if required.
LiquipediaOne eye to kill. Two eyes to live.
kkris
Profile Blog Joined June 2008
United States19 Posts
July 08 2008 17:33 GMT
#11
Yes it handles URLs, images, etc. as it should.

I handled quote stacks/nests differently on my site. When you quote a post that has quoted text in it it will remove it.

For example, here on TL it works like this..

Post 1

Post 2 quoting post 1
Show nested quote +
Post 1

Post 3 quoting post 2
Show nested quote +
Post 2 quoting post 1
Post 1


..on VG i have it like this..

Post 1

Post 2 quoting post 1
Show nested quote +
Post 1

Post 3 quoting post 2
Show nested quote +
Post 2 quoting post 1


..post 3 does not show the quoted text from post 1.
I'm Spartan and waiting for the reban hammer to hit me good.
fusionsdf
Profile Blog Joined June 2006
Canada15390 Posts
July 08 2008 20:33 GMT
#12
word wrap on
http://www.teamliquid.net/mytlnet/editprofile.php

is broken for me
SKT_Best: "I actually chose Protoss because it was so hard for me to defeat Protoss as a Terran. When I first started Brood War, my main race was Terran."
Please log in or register to reply.
Live Events Refresh
Next event in 1h 41m
[ Submit Event ]
Live Streams
Refresh
StarCraft: Brood War
firebathero 1591
Hyuk 320
Leta 304
ToSsGirL 168
Zeus 127
Dewaltoss 116
JulyZerg 51
sorry 45
Sacsri 32
soO 25
[ Show more ]
NaDa 23
ajuk12(nOOB) 22
ivOry 1
Britney 0
Dota 2
XcaliburYe216
BananaSlamJamma114
Counter-Strike
Stewie2K572
Other Games
ceh9605
Happy167
Fuzer 107
SortOf97
Organizations
Other Games
gamesdonequick1246
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Sammyuel 44
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 5
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Stunt736
Other Games
• WagamamaTV162
Upcoming Events
Esports World Cup
1h 41m
Reynor vs Zoun
Solar vs SHIN
Classic vs ShoWTimE
Cure vs Rogue
Esports World Cup
1d 2h
OSC
1d 5h
CranKy Ducklings
2 days
BSL20 Non-Korean Champi…
2 days
CSO Cup
2 days
BSL20 Non-Korean Champi…
2 days
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
3 days
BSL20 Non-Korean Champi…
3 days
BSL20 Non-Korean Champi…
3 days
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
[ Show More ]
Sparkling Tuna Cup
5 days
Online Event
5 days
uThermal 2v2 Circuit
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational
Championship of Russia 2025
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
Esports World Cup 2025
CC Div. A S7
Underdog Cup #2
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25

Upcoming

CSLPRO Last Chance 2025
ASL Season 20: Qualifier #1
ASL Season 20: Qualifier #2
ASL Season 20
CSLPRO Chat StarLAN 3
BSL Season 21
RSL Revival: Season 2
Maestros of the Game
SEL Season 2 Championship
uThermal 2v2 Main Event
FEL Cracov 2025
HCC Europe
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.