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?

    Thanks,

    Keith
     
    Keithb, Nov 15, 2006
    #1
    1. Advertising

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


    --
    Co-founder, Eggheadcafe.com developer portal:
    http://www.eggheadcafe.com
    UnBlog:
    http://petesbloggerama.blogspot.com




    "Keithb" wrote:

    > 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
    >
    >
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Nov 15, 2006
    #2
    1. Advertising

  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?

    Thanks,

    Keith


    "Peter Bromberg [C# MVP]" <> wrote in message
    news:...
    > 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
    >
    >
    > --
    > Co-founder, Eggheadcafe.com developer portal:
    > http://www.eggheadcafe.com
    > UnBlog:
    > http://petesbloggerama.blogspot.com
    >
    >
    >
    >
    > "Keithb" wrote:
    >
    >> 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
    >>
    >>
    >>
    >>
     
    Keithb, Nov 15, 2006
    #3
  4. 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




    "Keithb" wrote:

    > 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
    >
    >
    > "Peter Bromberg [C# MVP]" <> wrote in message
    > news:...
    > > 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
    > >
    > >
    > > --
    > > Co-founder, Eggheadcafe.com developer portal:
    > > http://www.eggheadcafe.com
    > > UnBlog:
    > > http://petesbloggerama.blogspot.com
    > >
    > >
    > >
    > >
    > > "Keithb" wrote:
    > >
    > >> 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
    > >>
    > >>
    > >>
    > >>

    >
    >
    >
     
    =?Utf-8?B?UGV0ZXIgQnJvbWJlcmcgW0MjIE1WUF0=?=, Nov 15, 2006
    #4
  5. On Wed, 15 Nov 2006 10:17:27 -0800, "Keithb" <>
    wrote:

    >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.
     
    James Hawkins, Nov 16, 2006
    #5
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Shel Blauman [MSFT]

    Re: feature or bug?

    Shel Blauman [MSFT], Aug 11, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    412
    Shel Blauman [MSFT]
    Aug 11, 2003
  2. Replies:
    14
    Views:
    1,501
  3. Replies:
    6
    Views:
    1,978
  4. Meelis Lilbok

    Bug or Feature ;)

    Meelis Lilbok, Mar 30, 2006, in forum: ASP .Net
    Replies:
    4
    Views:
    430
    Juan T. Llibre
    Mar 30, 2006
  5. robic0
    Replies:
    7
    Views:
    111
    Samwyse
    Jan 24, 2006
Loading...

Share This Page