Skip to content

Commit

Permalink
scrape_docs fix some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
JOJ0 committed Sep 10, 2024
1 parent 4a8d6b1 commit 8000859
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scrape_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,12 @@ def scrape(output, url):
for val in range(0, spacing_count * 2):
spacing += ' '
rst = f'{spacing}`{e.text} <{fulllink}>`_'
# csv format also adds some spacing in front of links
if output == 'csv':
left_col = f'"{rst}"'
print(f'{left_col},')
elif output == 'rst':
print(rst)
# Final spacing only with these formats
if output in ['default']:
if output == 'default': # Final spacing only with default format
print()

# print(soup.prettify())
Expand Down

0 comments on commit 8000859

Please sign in to comment.