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

fix how prefix is inserted into output #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alxndr
Copy link
Contributor

@alxndr alxndr commented Apr 18, 2016

The line can be a multiline string. This commit changes how the prefix is inserted to use a multiline regular expression instead of prepending one to line.

Fix for the bug reported in #17


This change is Reviewable

...if the `line` is a multi-line string
@alxndr
Copy link
Contributor Author

alxndr commented Apr 18, 2016

Hrm, now I'm seeing double-prefixes...

screen shot 2016-04-18 at 10 20 10

@M-Zuber
Copy link
Owner

M-Zuber commented Jul 12, 2016

Ping on the issue of seeing double [test].

@M-Zuber
Copy link
Owner

M-Zuber commented Jul 28, 2016

The issue was related to mochajs/mocha#2401.
I implemented a more complete fix, but will only be able to push it up tomorrow or after the weekend

@M-Zuber
Copy link
Owner

M-Zuber commented Aug 15, 2016

So basically after fighting with this a whole bunch, it would seem that our options are either no new lines, or extra ones at random spots due to pauses in piping.
Personally I feel lack of white space is less of an issue - but I would then make it opt-in and have the default use quite (thanks to you @alxndr 😄 ) or inherit #22
Exhibit A
image

Do you have any thoughts on this?

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.

None yet

2 participants