Bug 1353792

Summary: Whiptail fails to allocate good space for tag and item strings in long strings
Product: [Fedora] Fedora Reporter: Steven Shiau <steven>
Component: newtAssignee: Miroslav Lichvar <mlichvar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: mlichvar, steven
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: newt-0.52.20-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-01 17:12:47 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Whiptail does not allocate good space for tag and strings
none
Whiptail allocates good space for tag and strings
none
[Update] Whiptail allocates good space for tag and strings none

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.