[parted-devel] [PATCH] Make ---pretend-input-tty inhibit output word-wrap.

Otavio Salvador otavio at debian.org
Mon May 7 15:08:54 UTC 2007


Jim Meyering <jim at meyering.net> writes:

> Another tiny patch, for improved testability.
> Without this patch, testing expected output against actual was
> a royal pain, since I have to edit the expected output file to
> match the wrapping performed by parted itself, and that depends
> on "screen width".  With this change, using the ---pretend-input-tty
> option disables the bothersome wrapping:
>
> 	Make ---pretend-input-tty inhibit output word-wrap.
> 	* parted/ui.c (screen_width): Use effectively-unlimited screen width
> 	with ---pretend-input-tty, just as for '--script' mode.
>
> This probably breaks the existing tests, but, as I said, they're
> about to be replaced wholesale with better ones.
>
> Signed-off-by: Jim Meyering <jim at meyering.net>

Ack.

-- 
        O T A V I O    S A L V A D O R
---------------------------------------------
 E-mail: otavio at debian.org      UIN: 5906116
 GNU/Linux User: 239058     GPG ID: 49A5F855
 Home Page: http://otavio.ossystems.com.br
---------------------------------------------
"Microsoft sells you Windows ... Linux gives
 you the whole house."



More information about the parted-devel mailing list