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>
This folder contains two things:
- Wrappers for
syscalls to be used by Plugs - Reusable library code that plugs may find useful