Label wrapping in WinSCP Extensions
Recently I have noticed that the labels on my WinSCP extension files are being wrapped to a 2nd line in an unexpected manner.
Example extension just displaying labels in the dialog box:
See result in attached image.
This happens with 5.21.1.
It also happens in the 5.20.1.12225 and 5.20.2.12278 versions that I was using.
This is on Windows 10 Pro 21H2 build 19044.1706. It seems that I was not getting this behavior in the past with the same 5.20 versions, so I'm wondering if a Windows update changed GUI behavior.
I managed to "fix" it by using non-breaking spaces and changing from ANSI encoding to UTF-8, but thought I'd pass along the unexpected behavior in case anyone else experiences the same issue.
Example extension just displaying labels in the dialog box:
@name Title:: #Title needs 2 colons to have 1 on toolbar (both show on File Custom Commands context menu). @description Custom Extension Description @command echo ! #Don't really need or want a command, but had to put something @side Remote @option - -run label "One-word-label. @option - -run label "Two-word label." @option - -run label "This is a six word label." @option - -run label "When a label has more then one word it is being wrapped to a new line, even when a new line is not required." @option - -run label "For shorter lines, it's always just the last word that is wrapped."
This happens with 5.21.1.
It also happens in the 5.20.1.12225 and 5.20.2.12278 versions that I was using.
This is on Windows 10 Pro 21H2 build 19044.1706. It seems that I was not getting this behavior in the past with the same 5.20 versions, so I'm wondering if a Windows update changed GUI behavior.
I managed to "fix" it by using non-breaking spaces and changing from ANSI encoding to UTF-8, but thought I'd pass along the unexpected behavior in case anyone else experiences the same issue.