Is this a bug or a feature?

  • Thread starter Thread starter Keithb
  • Start date Start date
K

Keithb

In a label control, this text string will wrap: "abcdefg/ abcdefq/
abcdefghi/ abcdefgh"

In a label control, this text string will not wrap: "abcdefg /abcdefq
/abcdefghi /abcdefgh"

When followed by a symbol, spaces are treated as non-breaking spaces. Is
this a feature or a bug? Is there some character combination that will force
a breaking space when followed by a symbol?

Thanks,

Keith
 
Do you want a breaking space or a non-breaking space?
The HTML entity for non-breaking space is



You get a line break with the HTML <br/> tag.

Peter
 
The problem is that what is supposed to be a breaking space is being
interpreted as a non-breaking space. How can I correct this?

Thanks,

Keith
 
Sorry, but my entity for nonbreaking space got--
turned into a nonbreaking space!

That was & n b s p ; (without the spaces in betwee)

If you put a <br> tag in the string that is being assigned to the Label's
Text property, it should create a linefeed (a new line), if that's what you
want.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
 
In a label control, this text string will wrap: "abcdefg/ abcdefq/
abcdefghi/ abcdefgh"

In a label control, this text string will not wrap: "abcdefg /abcdefq
/abcdefghi /abcdefgh"

When followed by a symbol, spaces are treated as non-breaking spaces. Is
this a feature or a bug? Is there some character combination that will force
a breaking space when followed by a symbol?

This appears to not be limited to the label element. Perhaps you
meant the .Net label control, but even still, it seems to apply
anywhere in HTML. However, not any non-char causes it.
Some that don't: @['"#
Some that do: /,;.

I couldn't find anything at http://www.w3.org/ about it.
 
Back
Top