Search Unity

Bug Nested tags of same kind don't act as expected

Discussion in 'UGUI & TextMesh Pro' started by Oskiii, Aug 22, 2020.

  1. Oskiii

    Oskiii

    Joined:
    Feb 23, 2016
    Posts:
    13
    Let's say I have a text field with the following input:
    <uppercase><uppercase>Hello</uppercase> world</uppercase>


    I would expect the whole thing to be uppercase, that's how nested tags work in HTML. However, the following result is produced:
    upload_2020-8-22_11-24-48.png

    I encountered this problem while trying to form dynamic string with rich text tags. If a parent string has the uppercase tag, I would have to smartly remove the tag from the children where necessary for the system to work.
     
  2. Stephan_B

    Stephan_B

    Joined:
    Feb 26, 2017
    Posts:
    6,596
    Good catch.

    I have made the appropriate change to make sure this will behave as expected in the next release of the TMP package.
     
    Oskiii likes this.