Skip to content

Commit 4b04fa0

Browse files
committed
fix docs_get_section
1 parent 67a3a46 commit 4b04fa0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

specparam/modutils/docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def docs_get_section(docstring, section, output='extract', end=None):
164164
if section in line and '--' in docstring_split[ind + 1]:
165165
in_section = True
166166
if end:
167-
if in_section and ' ' + end == line:
167+
if in_section and end == line or ' ' + end == line:
168168
in_section = False
169169
# In this approach, an extra newline is caught - so pop it off
170170
outs.pop()

0 commit comments

Comments
 (0)