Allow for output without additional space padding

Sergey Astanin avatarSergey Astanin created an issue

This could be especially useful for TSV and other simple_separated_formats if their output is intended for automatic processing.


  • tabulate can be used as a unified output library for human-readable formatting and for machine-readable output


  • many formats may be useful in aligned and in non-aligned forms ("plain", "pipe", "mediawiki", "latex", TSV/CSV); some are useful only aligned
  • introducing new built-in formats which produce only unaligned output (or produce unaligned output by default), goes against the principal purpose of tabulate to generate a human readable representation
  • additional whitespace


  • keep all formats aligned by default
  • make alignment and padding optional
  • avoid introducing new parameters/function arguments if possible

Work in progress: feature/unaligned-formats branch. See also discussion in pull request #6.

Comments (1)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.