Problem Description
One of the doctests in the example below isn´t rendered correctly. The behavior depends on indentation and on the --docformat command argument: see example below.
Steps to reproduce the behavior:
test script doctest_google.py:
def bla():
"""Print bla.
Examples:
>>> bla()
blu
>>> bla()
bla
"""
print("bla")
def bli():
"""Print bli.
Examples:
>>> bli()
bli
>>> bli()
blo
"""
print("bli")
bla()
bli()
Apply:
or
pdoc doctest_google.py --docformat restructuredtext
And get this:

Or apply
pdoc doctest_google.py --docformat google
and get this:

System Information
pdoc: 12.0.2
Python: 3.9.13
Problem Description
One of the doctests in the example below isn´t rendered correctly. The behavior depends on indentation and on the --docformat command argument: see example below.
Steps to reproduce the behavior:
test script doctest_google.py:
Apply:
or
And get this:

Or apply
and get this:

System Information
pdoc: 12.0.2
Python: 3.9.13