#1104266 libtext-lorem-perl: incorrect output generated by the lorem executable

Package:
libtext-lorem-perl
Source:
libtext-lorem-perl
Submitter:
Vincent Lefevre
Date:
2025-04-28 01:27:03 UTC
Severity:
normal
Tags:
#1104266#5
Date:
2025-04-28 01:24:04 UTC
From:
To:
The lorem executable has 2 issues:
* The elements of the array need to be separated by " " or "\n".
* A final "\n" needs to be output (to get a POSIX text file and
  to avoid issues in an interactive shell).

Without the separators, the lorem executable is useless.
For instance, with bash:

vinc17@qaa:~$ lorem -w 5
accusantiumeosrationeestofficiavinc17@qaa:~$

One cannot see the separation between the words and this is mixed up
with the shell prompt.

I've attached the patch I've written for the pull request upstream.