December Adventure Day 8
Dec 8, 2025 - ⧖ 2 minPublished as part of 'December Adventure 2025' series.
Today's goal was to post sections of a book to the GoToSocial bot I set up earlier in the adventure.
This morning was preparation: cleaning up the code that splits ebooks, cleaning up the directory structure of where book parts get dumped, storing a little json file with each book to store useful information for when it's time to post (like the title, author, and number of parts).
In the evening, I made a bunch of test posts. I found some inconsistencies after checking on the posts in Elk (the web frontend I use most), Pinafore (a popular web frontend), and Tusky (the Android app I use). They all treated whitespace a little differently.
For example:
<p>
This ebook is the product of
<a href="https://standardebooks.org/">
Standard Ebooks
</a>
</p>
One displayed it as you would expect. One treated the newline between "of" and "Standard" as meaningful and put the two words on different lines. And the other collapsed all the whitespace between "of" and "Standard" down to "ofStandard".
Bizarre.
It was an easy enough fix. I just stopped pretty printing the html. Now they all display things consistently.
So, test posts are done. Tomorrow I'll try deploying the code to my little server, set up a timer to post on a schedule, and let people know they can read O Pioneers! by Willa Cather with me over the course of 39 days.