Skip to content

Commit

Permalink
Update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
thombashi committed Oct 8, 2023
1 parent dca9d00 commit b0f3c97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
9 changes: 8 additions & 1 deletion pytablewriter/writer/_table_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,14 @@ def from_writer(
self, writer: "AbstractTableWriter", is_overwrite_table_name: bool = True
) -> None:
"""
Set tabular attributes to the writer from another table writer class instance.
Copy attributes from another table writer class instance.
Args:
writer (pytablewriter.writer.AbstractTableWriter):
Another table writer instance.
is_overwrite_table_name (bool, optional):
Overwrite the table name of the writer with the table name of the ``writer``.
Defaults to |True|.
"""

self.__clear_preprocess()
Expand Down
10 changes: 5 additions & 5 deletions pytablewriter/writer/text/_markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ class MarkdownTableWriter(IndentationTextTableWriter):
"""
A table writer class for Markdown format.
:Example:
:ref:`example-markdown-table-writer`
Example:
:ref:`example-markdown-table-writer`
"""

FORMAT_NAME = "markdown"
Expand Down Expand Up @@ -130,11 +130,11 @@ def write_table(self, **kwargs: Any) -> None:
Args:
flavor (Optional[str]):
possible flavors are:
possible flavors are as follows (case insensitive):
- ``"CommonMark"``
- ``"github"``
- ``"gfm"`` (alias of ``"github"``)
- ``"gfm"``
- ``"github"`` (alias of ``"gfm"``)
- ``kramdown``
- ``Jekyll`` (alias of ``"kramdown"``)
Expand Down

0 comments on commit b0f3c97

Please sign in to comment.