Text reflow woes (or: I want bullets back!)y
Sean Conner
sean at conman.org
Sat Jan 18 03:47:21 GMT 2020
It was thus said that the Great solderpunk once stated:
>
> Feedback on the below very welcome!
Okay, I went ahead and implemented some of this spec. I didn't bother
with the list stuff as that has to be clarified. But the rest I did, and so
far, the implementation wasn't *too* bad---about 50 lines, but I'm using a
library to wrap text which may or may not exist in other languages.
Anyway, you guys can test out a server rendered version at various widths
(you can even specify the width) at:
gemini://gemini.conman.org/test/testreflow.gemini
Some notes---the link section may or may not be how clients render
links---since the output is pure text, I decided to just make them look
distinct. Also, that large block of text (with the header "Very long lines,
one after the other") I might change (add a blank line that doesn't exist)
but that would complicate the implementation (in case there *is* a blank
line in the input), so I'm still thinking on that one.
But in any case, here's a sample implementation (the link to the code is
in the page mentioned above) that I'm presenting for your bikeshedding
excitement.
-spc (Remember---I haven't implemented lists yet ... )
More information about the Gemini
mailing list