Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Formating issue for some pre/code blocks #18

Open
rouilj opened this issue Oct 11, 2023 · 0 comments
Open

Formating issue for some pre/code blocks #18

rouilj opened this issue Oct 11, 2023 · 0 comments

Comments

@rouilj
Copy link

rouilj commented Oct 11, 2023

Hello:
I love your readlists implementation. I use it to generate epubs that I can read on my phone when I am
offline.

However I have come across an issue with some web sites. For example, if I create a readlist of:

https://stackabuse.com/python-specific-design-patterns/

and look at the code examples wrapped in pre, some of them don't have linebreaks.
I think it is caused by the syntax highlighting. For example the original example looks
like this on the web page:

image from web page

while in the epub (or HTML output) from Readlists, I get:

image from calibre epub viewer

If you try this you will note that the third pre-block that has no syntax highlighting displays correctly
with linebreaks. Also the second pre-block has linebreaks after lines that do not have any syntax
highlighting.

I am not sure if this can be fixed in Readlists to allow the highlighting to be properly displayed
in the epub. I would be happy to lose the syntax highlighting and get linebreaks where they
should be (or line wraps and line breaks if the line is too long).

Thanks again for a great tool. It works wonderfully for my other application which is to download
EMS articles for use on the ambulance.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant