OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: Esrael on May 15, 2014, 08:17:23 am

Title: Line breaks in long strings
Post by: Esrael on May 15, 2014, 08:17:23 am
Hello,

I have a little suggestion to improve the aesthetics of line breaks in long strings. The problem is that when OpenXcom makes a line break in a long string, it adds the space to the new line instead of the previous line (see pictures) creating an unnecessary indentation. It's not that common in the English version, but a bit more common in the Finnish translation for the strings to wrap to another line, so it would be nice if someone had the time to fix the line breaking rules to include the space at the end of the word preceding the line break.

Thanks a lot for your great work on this marvellous gem, guys! :D

(https://i.imgur.com/mXuobp2.jpg)

(https://i.imgur.com/fFVBE0w.jpg)
Title: Re: Line breaks in long strings
Post by: Esrael on May 15, 2014, 08:26:35 am
Ugh, I just realized I should have probably written this in the bug tracker. >_> I filed the issue there instead, so you can close this thread.

Sorry!
Title: Re: Line breaks in long strings
Post by: Snickerdoodle on May 15, 2014, 11:04:03 am
No, in this case I have to disagree. The indentation makes it clearer that the text is a continuation of the preceding line, and not a separate line.

Without the indentation, the mods screen would be more confusing.
Title: Re: Line breaks in long strings
Post by: kkmic on May 15, 2014, 11:51:37 am
Same opinion here. The indentation gives a visual cue that the indented line(s) and the first unindented line above are composing one list element.
Title: Re: Line breaks in long strings
Post by: SupSuper on May 16, 2014, 06:25:19 am
As I mentioned in the bug tracker, "it's not a bug, it's a feature!". :P This was specifically added because people didn't like this:

(https://i.imgur.com/7VGcpMg.png)

While unconventional (normally the first line is indented in long texts), this is the only workaround for having distinguishable multi-line rows without messing with the layout.