Skip to content

Commit

Permalink
Update rthk.py
Browse files Browse the repository at this point in the history
  • Loading branch information
raileo98 authored Oct 22, 2024
1 parent 740e86e commit a65014f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/rthk.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ async def process_category(category, url):
tag.decompose()

async with aiofiles.open(rss_filename, 'w', encoding='utf-8') as file:
await file.write(soup_rss.prettify())
await file.write(soup_rss.prettify().rstrip())

print(f'{category} 處理完成!')

Expand Down

0 comments on commit a65014f

Please sign in to comment.