flextable
flextable copied to clipboard
Tab stops are put in column 1 ignoring the selection (e.g. j=3:8)
Hello @davidgohel First of all, thank you wholeheartedly for bringing decimal (and other) tabulation marks into flextable. It is totally a game changer! And it works perfectly.
Only I noticed one thing. I formatted a table, where the 2 first columns described the content, and the remaining columns held the numeric content.
In the 1st column I prepended the content with "\t" to mimic a nested hierarchy of items. That's very common in my field.
I didn't need any specific positions of tab stops here. Just plain, simple tabs. So I explicitly told flextable to put tab stops only in concrete cells: at the cross of i=1:nrow(data) and j=3:8.
Yet the tab stops were put in the first column too, which spoiled the hierarchy.
Luckily it was enough to select the 1 column and delete the tab stops with a mouse to fix it.
Maybe this issue was caused by the fact that I merged cells in the the 1 row to make a vertical sub-header?