Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-22-2012, 04:34 AM   PM User | #1
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
the influence of space

This is second time I encountered this space effect.

What you see here is done server side twice, all exact same thing with only exception:
Code:
out.print(" ...</a></li> ");
out.print(" ...</a></li>");
You see extra space at first line ? Without that space all gets wrong !

Result: Se last line on this html page: http://agrozoo.net/jsp/taxon-clouds/gobe.jsp, it contains all exact same thing
as all stuff above, except that space, mentioned in uppercode is missing.

Any comment abut that ?

EDIT:
So I looked up some of my code that basicaly compresses html,on the end of it I have:
Code:
s = s.replaceAll("</a>","</a> ");
which a bit decompress the thing otherwise the display is broken.
So I guess I should allso add:
Code:
s = s.replaceAll("</li>","</li> ");
Is there more general rule about that ?
__________________
Found a flower or bug and don't know what it is ?
agrozoo.net galery
if you don't spot search button at once, there is search form:
agrozoo.net galery search

Last edited by BubikolRamios; 02-22-2012 at 05:07 AM..
BubikolRamios is offline   Reply With Quote
Old 02-22-2012, 05:04 AM   PM User | #2
cercos
New Coder

 
Join Date: Feb 2012
Posts: 39
Thanks: 0
Thanked 9 Times in 9 Posts
cercos is an unknown quantity at this point
You may want to ask this in the Java and JSP section...people that know your answer hang in that section
cercos is offline   Reply With Quote
Old 02-22-2012, 09:36 AM   PM User | #3
VIPStephan
The fat guy next door


 
VIPStephan's Avatar
 
Join Date: Jan 2006
Location: Halle (Saale), Germany
Posts: 7,614
Thanks: 5
Thanked 865 Times in 842 Posts
VIPStephan is a jewel in the roughVIPStephan is a jewel in the roughVIPStephan is a jewel in the rough
Usually in HTML there should be no difference. I can only imagine that there’s a hidden character like a non-breaking space that prevents the elements from wrapping.
__________________
Don’t click this link!
VIPStephan is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:44 AM.


Advertisement
Log in to turn off these ads.