Ambiguity in the gemini document spec

colecmac at protonmail.com colecmac at protonmail.com
Sat May 16 04:41:05 BST 2020


Hello everyone! Although this is mostly directed to solderpunk.

I've noticed something that's not clearly defined in the part of
the Gemini spec that concerns the text/gemini format. Specifically,
something should be added in section 1.3.5.1 or 1.3.5.2.

The link specification in 1.3.5.3.2 defines links as:

=>[<whitespace>]<URL>[<whitespace><USER-FRIENDLY LINK NAME>]<CR><LF>

But no where else in the spec does it say that lines must end with
<CR><LF> characters, in fact how lines end is not defined at all. I haven't
inspected a lot of gemini sites, but I suspect that most of them
just use <LF>, aka \n, for line endings, because that is the default
for most text editors. And I suspect that most clients are fine with
this, for links or any other text lines.

My suggestion is to change the spec to explicitly say that lines end
with <LF>, with the <CR> part being optional. This could apply to
URL requests, etc, as well, but that's not really necessary, it would
just be nice.

This change will bring the current practices of users and clients into
spec, and it will also clear up that ambiguity.

Let me know what you think!

Thank you,
makeworld



More information about the Gemini mailing list