Skip to content

Feature request: table alignment #6

@pparik

Description

@pparik

It would be neat to have the option to specify the table alignment (i.e., left, center, right) by a simple syntax extension, similar to how the table cell alignment is specified:

|<Xw w w ... wY>|

w are the table/column widths, standard plugin syntax
X and Y are the whitespace

Pseudocode:

if ( strlen(X) >= 2 && strlen(Y) >= 2 ) align = center
elseif ( strlen(X) >= 2 ) align = right
else align = left

I guess this extension would be not hard to implement & would not break existing usage (I doubt anyone uses more than one space after |< and before >|). Using other extensions for such a simple thing is extremely annoying...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions