Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Truncating empty spaces in between while displaying hyperlinks.

 
Akshay Singhvi
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • 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.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic