Author Topic: Bug: UILabel line wrapping adding an extra space for formatting symbols  (Read 34123 times)

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 22
    • View Profile
Well, no more responses but I needed this to be fixed, so I investigated some more. I think the conditional given above isn't quite right. Changing it to the following fixed the problem so far:

  1. while (start < text.Length && IsSpace(text[start])) ++start;

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
You mentioned you will send me the complete project repro, so I was waiting on it.

Your change seems safe enough, but not sure why you needed it, nor what was different between your setup and mine. As I showed in the screens, everything worked as expected on my end... so what was wrong is anyone's guess.

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 22
    • View Profile
I sent the project to support@tasharen.com on April 28th. Subject line: "UILabel line wrapping adding an extra space for formatting symbols - sample project"

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
The related email I got on the 28th was titled "Unity package with repro for text wrapping bug" referencing thread http://www.tasharen.com/forum/index.php?topic=6313.0 to which I replied. Unfortunately I don't see anything else...

MigrantP

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 22
    • View Profile
I just forwarded you the email. The attachment is called LineWrapBug.zip. If you're not receiving my emails, I can try dropbox or something.