Closed Chuck1111 closed 1 year ago
Got it, yes it is a bug and be fixed by #175.
Root cause: divided by should start from 0 instead of 1 to get the same number of rows in the first page.
Example:
> 1:10 %/% 3
[1] 0 0 1 1 1 2 2 2 3 3
Note: there is no need to use multiple rtf_colheader
. You can use \n
to get multiple lines as shown in #175.
Describe the bug In some of the tables I generated using r2rtf, the first page has a different nrow from the other pages. In the example below, when I set nrow = 25, the page 1 has more blank rows at the bottom while the other pages fit. But if you change the nrow from 25 to 26, the first page will fit while the other pages will split into two pages.
Expected behavior How can we have the nrow consistent among different pages?
To reproduce
Created on 2023-06-15 with reprex v2.0.2