Is this a bug or a feature?

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
 
G

Guest

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
 
K

Keithb

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
 
G

Guest

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
 
J

James Hawkins

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top