Skip to content

Commit da60366

Browse files
fix: fix docstring escaping
1 parent 2ba8475 commit da60366

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/ansys/dpf/core/helpers/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def _sort_supported_kwargs(bound_method, **kwargs):
5252

5353

5454
def indent(text: Any, subsequent_indent: str = "", initial_indent: Optional[str] = None) -> str:
55-
"""
56-
Indents each line of a given text.
55+
"""Indents each line of a given text.
5756
5857
Parameters
5958
----------
@@ -71,7 +70,7 @@ def indent(text: Any, subsequent_indent: str = "", initial_indent: Optional[str]
7170
7271
Examples
7372
--------
74-
>>> text = "Hello\nWorld"
73+
>>> text = "Hello\\nWorld"
7574
>>> print(indent(text, subsequent_indent=" ", initial_indent="--> "))
7675
--> Hello
7776
World

0 commit comments

Comments
 (0)