Files
plainleaf/plug-api
Matouš Jan Fialka 81f5ec7f67 Fix table cell alignment for missing and misaligned cells
The table style is determined by the header row. After normalizing the
header (filling empty cells between consecutive delimiters), extract
two properties: the column count and whether the header starts with
a delimiter.

For each data row, normalization proceeds in three steps. First, fill in
empty cells between consecutive delimiters (this handles empty cells in
the middle of a row). Second, if the header has no leading delimiter but
the row does, insert an empty cell after the row's leading delimiter (this
corrects the one-position shift caused by the row having a leading pipe
that the header lacks. Third, if the row has fewer cells than the header
column count, pad with empty cells at the end (this handles rows that
are shorter than the header because trailing pipes or cells were
omitted).

The same normalization is applied both in the renderer and the indexer.

Signed-off-by: Matouš Jan Fialka <mjf@mjf.cz>
2026-03-06 14:20:48 +01:00
..
2026-02-05 21:44:01 +00:00
2026-02-26 11:39:43 +01:00
2024-05-25 23:12:48 +02:00
2024-08-07 13:27:25 +02:00
2026-01-07 11:00:32 +01:00
WIP
2026-01-20 13:48:15 +01:00

This folder contains two things:

  • Wrappers for syscalls to be used by Plugs
  • Reusable library code that plugs may find useful