bundles / papyri latest / papyri / directives / csv_table_handler
function
papyri.directives:csv_table_handler
source: /papyri/directives.py:613
Signature
def csv_table_handler(argument: str, options: dict[str, str], content: str, *, doc_path: Path | None = None, doc_root: Path | None = None, warn: DirectiveWarn = <function _log_warn at 0x0000>) → list[Any]Summary
Handler for .. csv-table:: — CSV-formatted table directive.
Extended Summary
Mirrors list-table in producing Table / TableRow / TableCell nodes. Supported options: :header: (delimiter-separated header cells), :header-rows: (integer), :delim: (tab, space, or a literal character), :file: (read rows from a file, resolved like include: relative to doc_path, or doc_root for /-prefixed paths) and its companion :encoding:. :url: is dropped with a warning — gen does not fetch over the network. Unsupported presentation options (:widths:, :stub-columns:, :align:, etc.) are tolerated and ignored.
Aliases
papyri.directives.csv_table_handler