-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newlines in <pre> tags shouldn't get removed #130
Comments
After further reading it seems like if at the end of the process the feed generation could know if the source text is HTML or plain text this could be solved by keeping HTML unmodified, but the Activitystreams 1 format does not support keeping that distinction? Changing this seems more realistic, but still quite a bit of effort. granary/granary/microformats2.py Line 385 in 0fb9d68
|
Just want to point out that I may have some problems with my own HTML/newline handling right now. Right now my HTML has newlines but no |
thanks for filing @sknebel, and for the in depth sleuthing! whee, whitespace handling. always entertaining. i'll take a look soon. |
for my own notes: @aaronpk may be right above about his HTML in general, but for this specific case, the offending content is indeed inside |
Some more thoughts, both assuming keeping AS1 as the central format:
|
i don't regret tackling this just yet...but i'm sure i will eventually. 🤣 |
thanks again for the ideas @sknebel. i handled this by adding a custom |
Just noticed when reading https://aaronparecki.com/2018/02/07/7/indieauth in my feedreader (@aaronpk uses granary to provide an Atom feed) that the contents of
<pre>
tags also get their newlines stripped and thus the code examples are missing them.Given that granary doesn't seem to need to parse the HTML anywhere I totally get if this is WON'T FIX. Given that the microformats parser returns the newlines as they are it also seems to be the wrong place to handle this(?)
(Ref #80 for why newlines are stripped)
The text was updated successfully, but these errors were encountered: