Rapporter / pander

An R Pandoc Writer: Convert arbitrary R objects into markdown
http://rapporter.github.io/pander/
Open Software License 3.0
294 stars 66 forks source link

Too much indentation in nested list #323

Closed rubenarslan closed 5 years ago

rubenarslan commented 6 years ago

The following R code, when rendered via rmarkdown

```{r}
pander::pander(list(w = (list(x = list(y=list(z="bla"))))))


yields

  * **w**:

      * **x**:

              * **y**:

                          * **z**: bla

i.e. the last two sub-levels are shown as code. 

I thought this could somehow could be fixed, by reducing the multiplier for indent.level in `pandoc.indent` and `pandoc.list.return` from 4 to 2, but there is someplace else where extra spaces are being introduced that I haven't figured out yet.
daroczig commented 5 years ago

Oh, great catch, thanks! I've just pushed a potential fix for this, can you please check?

rubenarslan commented 5 years ago

confirmed fixed!