r-lib / hugodown

Make websites with hugo and RMarkdown
https://hugodown.r-lib.org
Other
166 stars 24 forks source link

Eliminate extraneous newlines #92

Closed jennybc closed 3 years ago

jennybc commented 3 years ago

Experimentation relating to #91

This seems to help, which confirms the knit_hooks hypothesis. It is also clear I am not the best one to fix this definitively, so I'm stopping here.

hadley commented 3 years ago

I'm pretty sure this is correct. I guess it has always been wrong and we just somehow failed to notice? (Or complain loudly enough that I noticed 😀)

jennybc commented 3 years ago

~I've got some gratuitous assignments here now, but they were helpful in the debugger.~ removed

hadley commented 3 years ago

Confirmed that this fixes the problem in the usethis blog post

hadley commented 3 years ago

I spoke too soon 😢