• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Truncating empty spaces in between while displaying hyperlinks.

 
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Ranchers,

I have a situation where in one page I'm editing the name and in other page based on some search criteria i'm displaying the name with hyperlinks so that one can go the edit page by clicking on hte hyperlink.
Now the DB length of the name is 100 characters, so what i did in edit screen i gave the name as something like this:
"test A"
I gave test and then gave empty spaces and then letter 'A'. So now the total length is 100.It got saved also. But in the other screen where I'm searching the name what i got is something this:
test A everything under hyperlink. What has happened to the empty spaces in between 'test' and 'A'?

Is this a bug or this is how the hyperlink works.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
HTML ignores whitespace.
More specifically, it reduces mupltiple whitespace characters to a single space. This is normal.
If you use the browser's view source feature, you will most likely see that the spaces are there in the source.
 
What do you have to say for yourself? Hmmm? Anything? And you call yourself a tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic