Skip to content

Avoid adding newlines to output by default#15

Open
itskingori wants to merge 1 commit intotcnksm:masterfrom
itskingori:remove_newlines_from_output
Open

Avoid adding newlines to output by default#15
itskingori wants to merge 1 commit intotcnksm:masterfrom
itskingori:remove_newlines_from_output

Conversation

@itskingori
Copy link
Copy Markdown

@itskingori itskingori commented Sep 23, 2017

When newlines are hardcoded in the library, all user's of this library are forced into that ui-design choice without a way to modify that behaviour. This way, user's can opt to add newlines as they wish ... in their own tools.

For example, in the example below ... I would like not two have two empty lines after "Failed to validate". And even if I did, I'd prefer to have to add them myself for flexibility.

Before:

$ cli-tool-that-does-something
What is your token uuid?
Enter a value: afdsf
Failed to validate input string: afdsf


Enter a value: 2343242

After:

$ cli-tool-that-does-something
What is your token uuid?
Enter a value: afdsf
Failed to validate input string: afdsf
Enter a value: 2343242

I took the liberty to remove other newlines.

When newlines are hardcoded in the library, all user's of this library
are forced into that ui-design choice without a way to modify that
behaviour. This way, user's can opt to add newlines as they wish ...
in their own tools.
@itskingori itskingori force-pushed the remove_newlines_from_output branch from 3985332 to 54ca812 Compare September 23, 2017 13:51
@thedillonb
Copy link
Copy Markdown

@tcnksm any chance you could provide some feedback on this? The newlines are definitely odd and would be welcome if they were removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants