Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove trailing space after some commands #62

Closed
aureliojargas opened this issue Nov 24, 2019 · 0 comments
Closed

Remove trailing space after some commands #62

aureliojargas opened this issue Nov 24, 2019 · 0 comments
Labels
Milestone

Comments

@aureliojargas
Copy link
Owner

Sedsed is adding one extra trailing space after commands that usually have an argument, but sometimes doesn't. For example, b label can also be just b with no label. In that case, the extra space is added after b:

$ sedsed -e 5b | cat -A
5 b $
$ sedsed -e 5b -H | grep 5 | cat -A
<font color="#8080ff"><b>5</b></font> <font color="#ffff00"><b>b</b></font> $
$

Please, no useless trailing spaces.

@aureliojargas aureliojargas added this to the v2.0 milestone Nov 24, 2019
aureliojargas added a commit that referenced this issue Nov 25, 2019
Now only add a space after the command if there is actually something
else to be shown after it.

Test templates updated accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant