Strict parsing of link lines

The spec reads

All lines beginning with the two characters "=>" are link lines.

but also...

Link lines have the following syntax
=>[][]
where
is any non-zero number of consecutive spaces or tabs

So... is a line starting with "=>" but no following whitespace a link line or not? If not, what type of line is it?

=> Posted in: s/Gemini | 🛰ī¸ lufte

Jan 05 ¡ 4 weeks ago

3 Comments ↓

=> 🕹ī¸ skyjake [mod...] ¡ Jan 05 at 15:37:

The whitespace after => is optional, as indicated by the square brackets in the syntax.

The URL is the only required part of the link line, in addition to the =>.

=> 🛰ī¸ lufte [OP] ¡ Jan 05 at 15:50:

Ah, thanks. I need to improve my BNF reading then.

=> 🧇 Acidus · Jan 13 at 14:28:

I got tripped up on the same thing. Also, there is what the specification says, and what people actually do. I documented alot of the strangeness you will find with the protocol, gemtext, and various servers:

gemini://gemi.dev/weird.gmi

=> — gemi.dev/weird.gmi

Proxy Information
Original URL
gemini://bbs.geminispace.org/s/Gemini/23483
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
87.970385 milliseconds
Gemini-to-HTML Time
0.999748 milliseconds

This content has been proxied by September (3851b).