Skip to content
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

About table rowspan #124

Open
KYNE-sun opened this issue May 30, 2019 · 2 comments
Open

About table rowspan #124

KYNE-sun opened this issue May 30, 2019 · 2 comments

Comments

@KYNE-sun
Copy link

KYNE-sun commented May 30, 2019

I want a table like this:
`

1 2 3 4
8
9 10 11 12 13
`

but it doesn't work.

docx.table [['1','2','3','4'],['5','6','7','8'],['9','10','11','12','13']] do
cell_style rows[0][0], rowspan: 2
cell_style rows[0][1], colspan: 2, rowspan: 2
cell_style rows[0][2], rowspan: 2
end

@palytoxin
Copy link

palytoxin commented Mar 19, 2021

did you finally solve the this problem?

@Azzawie
Copy link

Azzawie commented Apr 12, 2024

@KYNE-sun I'm unsure if this is helpful after five years 😆 but check this out.

Screenshot 2024-04-11 at 8 34 43 PM

docx.table [%w(11 1213 14), %w(21 22 23 24)], border_size: 1 do
  cell_style rows[0][0], rowspan: 2
  cell_style rows[0][1], colspan: 2
  cell_style rows[0][2], rowspan: 2
end

Reference: https://github.com/urvin-compliance/caracal?tab=readme-ov-file#tables

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants