fix toxlsx() docstring formatting from ci failure
@@ -91,20 +91,24 @@ def toxlsx(tbl, filename, sheet=None, write_header=True, mode="replace"):
Write a table to a new Excel .xlsx file.
N.B., the sheet name is case sensitive.
+
The `mode` argument controls how the file and sheet are treated:
+
- `replace`: This is the default. It either replaces or adds a
named sheet, or if no sheet name is provided, all sheets
(overwrites the entire file).
+
- `overwrite`: Always overwrites the file. This produces a file
with a single sheet.
+
- `add`: Adds a new sheet. Raises `ValueError` if a named sheet
already exists.
+
The `sheet` argument can be omitted in all cases. The new sheet
will then get a default name.
If the file does not exist, it will be created, unless `replace`
mode is used with a named sheet. In the latter case, the file
must exist and be a valid .xlsx file.
-
"""
import openpyxl
if mode == "overwrite" or (mode == "replace" and sheet is None):
