Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,963
    Thanks
    120
    Thanked 76 Times in 76 Posts

    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 ?
    Last edited by BubikolRamios; 02-22-2012 at 05:07 AM.
    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

  • #2
    New Coder
    Join Date
    Feb 2012
    Posts
    40
    Thanks
    0
    Thanked 9 Times in 9 Posts
    You may want to ask this in the Java and JSP section...people that know your answer hang in that section

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,665
    Thanks
    6
    Thanked 1,006 Times in 979 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •