New truncate_cells_html config for truncating cells, closes #330

This commit is contained in:
Simon Willison 2018-07-10 09:20:41 -07:00
commit fc9b1cc136
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52
5 changed files with 54 additions and 0 deletions

View file

@ -152,3 +152,14 @@ You can disable the limit entirely by settings this to 0:
::
datasette mydatabase.db --config max_csv_mb:0
.. _config_truncate_cells_html:
truncate_cells_html
-------------------
In the HTML table view, truncate any strings that are longer than this value. The full value will still be available in CSV, JSON and on the individual row HTML page. Set this to 0 to disable truncation.
::
datasette mydatabase.db --config truncate_cells_html:0