• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:46
CEST 05:46
KST 12:46
  • 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 202561RSL 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 teams10Weekly Cups (July 14-20): Final Check-up0Esports World Cup 2025 - Brackets Revealed19Weekly Cups (July 7-13): Classic continues to roll8Team TLMC #5 - Submission re-extension5
StarCraft 2
General
#1: Maru - Greatest Players of All Time Server Blocker Team TLMC #5 - Submission re-extension Greatest Players of All Time: 2025 Update The StarCraft 2 GOAT - An in-depth analysis
Tourneys
Esports World Cup 2025 FEL Cracov 2025 (July 27) - $8000 live event Sparkling Tuna Cup - Weekly Open Tournament Master Swan Open (Global Bronze-Master 2) Sea Duckling Open (Global, Bronze-Diamond)
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
BGH Auto Balance -> http://bghmmr.eu/ Ginuda's JaeDong Interview Series [Update] ShieldBattery: 2025 Redesign BW General Discussion Dewalt's Show Matches in China
Tourneys
[Megathread] Daily Proleagues [BSL20] Non-Korean Championship 4x BSL + 4x China CSL Xiamen International Invitational [CSLPRO] It's CSLAN Season! - Last Chance
Strategy
[G] Mineral Boosting Does 1 second matter in StarCraft? Simple Questions, Simple Answers
Other Games
General Games
Stormgate/Frost Giant Megathread Total Annihilation Server - TAForever Nintendo Switch Thread [MMORPG] Tree of Savior (Successor of Ragnarok) Path of Exile
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
Stop Killing Games - European Citizens Initiative Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread US Politics Mega-thread Post Pic of your Favorite Food!
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
[\m/] Heavy Metal Thread Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion
Sports
Formula 1 Discussion 2024 - 2025 Football Thread 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
TeamLiquid Team Shirt On Sale 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
Eight Anniversary as a TL…
Mizenhauer
Customize Sidebar...

Website Feedback

Closed Threads



Active: 676 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 +

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
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">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
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 6h 14m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft442
Nina 214
RuFF_SC2 124
StarCraft: Brood War
Sea 4761
GoRush 181
Sexy 75
NaDa 67
Icarus 6
League of Legends
JimRising 511
Counter-Strike
Stewie2K1308
Super Smash Bros
Mew2King135
amsayoshi37
Heroes of the Storm
Khaldor6
Other Games
summit1g9554
shahzam960
C9.Mang0234
ViBE216
Organizations
Other Games
gamesdonequick1387
BasetradeTV28
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• practicex 31
• Berry_CruncH5
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift4743
• Lourlo1021
• Stunt343
Upcoming Events
CranKy Ducklings
6h 14m
BSL20 Non-Korean Champi…
10h 14m
CSO Cup
12h 14m
BSL20 Non-Korean Champi…
14h 14m
Bonyth vs Sziky
Dewalt vs Hawk
Hawk vs QiaoGege
Sziky vs Dewalt
Mihu vs Bonyth
Zhanhun vs QiaoGege
QiaoGege vs Fengzi
FEL
1d 5h
BSL20 Non-Korean Champi…
1d 10h
BSL20 Non-Korean Champi…
1d 14h
Bonyth vs Zhanhun
Dewalt vs Mihu
Hawk vs Sziky
Sziky vs QiaoGege
Mihu vs Hawk
Zhanhun vs Dewalt
Fengzi vs Bonyth
Sparkling Tuna Cup
3 days
Online Event
3 days
uThermal 2v2 Circuit
4 days
[ Show More ]
The PondCast
5 days
Replay Cast
5 days
Korean StarCraft League
6 days
Liquipedia Results

Completed

CSL Xiamen Invitational
Esports World Cup 2025
Murky Cup #2

Ongoing

Copa Latinoamericana 4
Jiahua Invitational
BSL20 Non-Korean Championship
BSL Team Wars
CSLPRO Last Chance 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

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.