Bug 1353792 - Whiptail fails to allocate good space for tag and item strings in long strings
Summary: Whiptail fails to allocate good space for tag and item strings in long strings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: newt
Version: 24
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Lichvar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-07-08 02:57 UTC by Steven Shiau
Modified: 2017-04-01 17:12 UTC (History)
2 users (show)

Fixed In Version: newt-0.52.20-1.fc26
Clone Of:
Environment:
Last Closed: 2017-04-01 17:12:47 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Whiptail does not allocate good space for tag and strings (4.25 KB, image/png)
2016-07-08 02:57 UTC, Steven Shiau
no flags Details
Whiptail allocates good space for tag and strings (4.25 KB, image/png)
2016-07-08 02:58 UTC, Steven Shiau
no flags Details
[Update] Whiptail allocates good space for tag and strings (4.34 KB, image/png)
2016-07-08 03:03 UTC, Steven Shiau
no flags Details

Description Steven Shiau 2016-07-08 02:57:07 UTC
Created attachment 1177513 [details]
Whiptail does not allocate good space for tag and strings

Description of problem:
Whiptail fails to allocate good space for tag and item strings in long strings

Version-Release number of selected component (if applicable):
newt-0.52.18-5.fc24.x86_64

How reproducible:
Always

Steps to Reproduce:
The window size in the console:
$ resize
COLUMNS=100;
LINES=37;
export COLUMNS LINES;

This command for whiptail does not show good strings:
whiptail --backtitle 'TEST' --title 'TEST' --menu 'MODE' 0 0 0 \
runA 'RunA' \
runB 'RunB' \
runC 'RunC01234567890123456789012345678901234567890123456789012345678901234567890123456789012' \
2> /tmp/output.txt

However, if making the strings shorter, the result is good:
whiptail --backtitle 'TEST' --title 'TEST' --menu 'MODE' 0 0 0 \
runA 'RunA' \
runB 'RunB' \
runC 'RunC0123456789012345678901234567890123456789012345678901234567890123456789012345678901' \
2> /tmp/output.txt

Actual results:
Attached as w-notok.png and w-ok.png.

Expected results:


Additional info:

Comment 1 Steven Shiau 2016-07-08 02:58:20 UTC
Created attachment 1177514 [details]
Whiptail allocates good space for tag and strings

Comment 2 Steven Shiau 2016-07-08 03:03:43 UTC
Created attachment 1177515 [details]
[Update] Whiptail allocates good space for tag and strings

Comment 3 Steven Shiau 2016-07-08 03:08:14 UTC
Expected results:
When longer strings, whiptail should cut the strings tail and make it look like the other one. Now it put more space between "tag" and "item strings".
My 2 cents.
Thanks.

Steven

Comment 4 Miroslav Lichvar 2016-08-03 14:38:06 UTC
Thanks for the report. This should be now fixed in upstream git and it will get to Fedora when the next release is made.

https://git.fedorahosted.org/cgit/newt.git/commit/?id=10bbfd2837eb5ad87416ed2a648231a2a9b7c6fc

Comment 5 Fedora Update System 2017-03-17 11:45:55 UTC
newt-0.52.20-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-8cabee1dba

Comment 6 Fedora Update System 2017-03-17 22:23:01 UTC
newt-0.52.20-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-8cabee1dba

Comment 7 Fedora Update System 2017-04-01 17:12:47 UTC
newt-0.52.20-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.