Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 98b022d

Browse files
authored
Fix Pandas->SDC docs formatting. (#747)
1 parent aaafff6 commit 98b022d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/buildscripts/apiref_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def _reformat_parameters(title, text):
303303
line = lines[0]
304304
line = line.strip()
305305
idx = line.find(' : ')
306-
if idx >= 0 & line[0:idx].isalnum():
306+
if idx >= 0 & line[0:idx].isalnum() and line[0:idx].isidentifier():
307307
# Check if previous parameter existed. If so, need to add it to reformatted text
308308
if param != '':
309309
new_text += _get_param_text(title, param) + '\n' + reindent(description, indent+4) + '\n'

0 commit comments

Comments
 (0)