Skip to content

Modify the alignment of cells in a table #153

@bnlawrence

Description

@bnlawrence

Hi ...

Would it be possible to add an attribute to table cells so it is possible to set the horizontal alignment (left/centred/right) per cell? I imagine the API would be the same as setting the cell width ... so it would be something like the following to have a left justified first column and right justified columns thereafter (as one might do with a spreadsheet of numbers):

#for say, three columns
alignments=['left','right','right']
for r in table.rows:
    for i in range(len(alignments)):
        r.cells[i].alignment=alignments[i]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions