~adnano/go-gemini-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH] Fix parsing of list item lines

Details
Message ID
<20220314061641.4183325f@enclave>
DKIM signature
missing
Download raw message
Patch: +2 -2
According to the Gemtext spec, the space is mandatory: gemini.circumlunar.space/docs/gemtext.gmi

---
 text.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/text.go b/text.go
index fe37df6..86ba77f 100644
--- a/text.go
+++ b/text.go
@@ -125,8 +125,8 @@ func ParseLines(r io.Reader, handler func(Line)) error {
				name = strings.TrimLeft(name, spacetab)
				line = LineLink{url, name}
			}
		} else if strings.HasPrefix(text, "*") {
			text = text[1:]
		} else if strings.HasPrefix(text, "* ") {
			text = text[2:]
			text = strings.TrimLeft(text, spacetab)
			line = LineListItem(text)
		} else if strings.HasPrefix(text, "###") {
-- 
2.34.1
Details
Message ID
<CIKJD8KM5CXT.T2OLSW0Y05GW@framework>
In-Reply-To
<20220314061641.4183325f@enclave> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~adnano/go-gemini
   3534166..8c0af18  master -> master
Reply to thread Export thread (mbox)