Skip to content

Fix br tag conversion to newlines in goodreads book descriptions#25

Merged
ahobsonsayers merged 4 commits intoahobsonsayers:mainfrom
l3akage:fix/16-newline-in-goodreads-description
Jun 14, 2025
Merged

Fix br tag conversion to newlines in goodreads book descriptions#25
ahobsonsayers merged 4 commits intoahobsonsayers:mainfrom
l3akage:fix/16-newline-in-goodreads-description

Conversation

@l3akage
Copy link
Copy Markdown
Contributor

@l3akage l3akage commented Jun 9, 2025

  • Replace
    tags with
    before html2text processing
  • html2text library doesn't handle
    (with space) format
  • Add test to verify br tag replacement works correctly

Fixes #16

- Replace <br /> tags with <br> before html2text processing
- html2text library doesn't handle <br /> (with space) format
- Add test to verify br tag replacement works correctly

Fixes ahobsonsayers#16
Copy link
Copy Markdown
Owner

@ahobsonsayers ahobsonsayers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single minor nit, but this looks incredible! Thanks so much for the contribution!

Comment thread goodreads/book.go Outdated
@ahobsonsayers
Copy link
Copy Markdown
Owner

Looks like I need to fix some tests on my side before this will pass 💀

l3akage and others added 2 commits June 11, 2025 21:18
Co-authored-by: Arran Hobson Sayers <32173585+ahobsonsayers@users.noreply.github.com>
@ahobsonsayers
Copy link
Copy Markdown
Owner

Looks like you have a linting failure.

We can either nolint the line, or fix it properly. I prefer the latter, but I'm kinda easy either way

Repository owner deleted a comment from arranpx Jun 13, 2025
@ahobsonsayers ahobsonsayers merged commit 10be524 into ahobsonsayers:main Jun 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Newlines seem to be removed from Goodreads descriptions - we should preserve them

2 participants