Is this a bug or a feature?

Discussion in 'ASP .Net' started by Keithb, Nov 15, 2006.

  1. Keithb

    Keithb Guest

    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?


    Keithb, Nov 15, 2006
    1. Advertisements

  2. Keithb

    Guest 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.

    Guest, Nov 15, 2006
    1. Advertisements

  3. Keithb

    Keithb Guest

    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?


    Keithb, Nov 15, 2006
  4. Keithb

    Guest 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

    Co-founder, developer portal:
    Guest, Nov 15, 2006
  5. 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 about it.
    James Hawkins, Nov 16, 2006
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.