Bug 7862 - Many short lines in text-mode tl-setup EULA
Summary: Many short lines in text-mode tl-setup EULA
Status: CLOSED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Server Installer (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.15.0
Assignee: Bugzilla mail exporter
URL:
Keywords: linma_tester, ossman_tester, prosaic
Depends on:
Blocks:
 
Reported: 2022-03-15 09:39 CET by William Sjöblom
Modified: 2022-03-24 10:52 CET (History)
1 user (show)

See Also:
Acceptance Criteria:


Attachments

Description William Sjöblom cendio 2022-03-15 09:39:12 CET
When running the text-based tl-setup, there are excessive line wrapping when
printing the EULA, making it harder to read. See the following excerpt:

> 8.1     The Program(s) is subject to laws and regulations of the
> United
> States and European Union that restrict its export. Licensee agrees
> not
> to export or "re-export" (transfer) the Program(s) unless all
> applicable United States, European Union and other relevant government
> export controls and approvals have been complied with.

So what seems to be happening is that the on-disk EULA is limited to a certain
number of columns while tl-setup tries to wrap it at another, smaller, number of
columns, causing this excessive line wrapping.
Comment 1 William Sjöblom cendio 2022-03-15 09:40:20 CET
This happens in both 4.13.0 and 4.14.0, so it's not a regression in the latest release.
Comment 2 Pierre Ossman cendio 2022-03-15 10:01:01 CET
We use Python's textwrap for the wrapping. It defaults to wrapping at 70 characters, and our EULA is written with the standard mail limit of 72 characters.

Oddly enough the EULA has always been this width. And textwrap has also always defaulted to 70 characters. So no idea how we missed this in bug 3057.
Comment 4 William Sjöblom cendio 2022-03-15 14:03:06 CET
This has now been fixed under the "trivial bug" umbrella.
Comment 5 Pierre Ossman cendio 2022-03-22 09:17:55 CET
I can confirm seeing this in 4.14.0. E.g.:

> 8.8     Licensee shall not assign, transfer, or sublicense any
> obligations or benefit under this License without the prior written
> consent, which shall not be unreasonably withheld, of Cendio (and any
> such attempt shall be void). Cendio may assign this License in whole
> or
> in part.

In build 2521 I instead see:

> 8.8     Licensee shall not assign, transfer, or sublicense any
> obligations or benefit under this License without the prior written
> consent, which shall not be unreasonably withheld, of Cendio (and any
> such attempt shall be void). Cendio may assign this License in whole or
> in part.

So this now wraps correctly. And I didn't see any new issues in the rest of the text.

Checking the code though, I'm wondering if we really need to special case just the EULA? Can't we have the same wrapping for everything?
Comment 7 William Sjöblom cendio 2022-03-23 14:43:03 CET
Both tl-setup and tl-installer are now wrapped at 72 columns instead of 70. I did a fresh install on SLES12 and both of these look good with the slightly wider wrapping.
Comment 8 Linn cendio 2022-03-24 10:45:26 CET
Checked the code changes and they look good. 

Also tested the wrapping on Ubuntu 20.04 for tl-installer, tl-setup and sudorelaunch, looks good.

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