-
Notifications
You must be signed in to change notification settings - Fork 80
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
Pass --no-wrap to pandoc #145
Conversation
Thanks! This is a better solution than I had brewing. I'm going to hold off on merge until I can sort out why all hell broke loose on travis/appveyor. |
7bd5948
to
6c5cce4
Compare
I think passing |
I will figure out what the old option would be. |
So So we will have to use |
The latter is only available on pandoc versions >= 1.16
Well that fixed the errors on travis, but appveyor has a bunch of failures, it is using pandoc v1.13.1 but it looks like |
I have suffered from messing with other pandoc options in the past and had to back out. @jimhester How gross do you find my suggestion in #140 to deal with this post-render? |
pretty gross, I really think the pandoc option is the right fix, I can try to hunt down what is going on in appveyor tomorrow. |
@jimhester How about this? All the results aren't in yet ... https://github.com/tidyverse/reprex/pull/146/files Update: well that just shifts the problem elsewhere in the ad. |
Yes, using non breaking spaces was my original fix. I really think the pandoc option is the right thing to do. |
The older, now deprecated way to say this in pandoc is |
Oh, sorry, I now see you had already done this and gotten same result. |
Prior to 1.16 this is --no-wrap, after it is --wrap=preserve This should fix the appveyor failures, it works fine on a windows VM with this version of pandoc.
c6d8f0c
to
b0c06c5
Compare
In c6d8f0c only one test fails on Appveyor, perhaps unrelated to these changes, so I think this is fixed. |
@jennybc does the current state of this PR look good to you? I am pretty confident this is the best way to fix this. |
Yes, thanks! |
Fixes #140