cripslock

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit c3d4b91b1ac16d71080dfacec9f2a692762b1344
parent 0823658f623853b54269d1e5ce4162d45ee479f3
Author: Daniel Barlow <dan@telent.net>
Date:   Sun, 20 Jul 2025 23:44:27 +0100

textile link may end in any whitespace, not just 32

Diffstat:
Mtextile.fnl | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/textile.fnl b/textile.fnl @@ -92,7 +92,7 @@ "\"" (fn [f str] (let [(title url unparsed) - (string.match str "^\"(.-)\":(%g+) +(.+)$")] + (string.match str "^\"(.-)\":(%g+)(%G+.+)$")] (if title (values (doto (f title) @@ -160,7 +160,9 @@ ["john " [:em "paul " [:strong "george"]]]) (expect= (inline-markup "see \"a link\":https://www.example.com for more") - ["see " [["a" {:href "https://www.example.com"}] "a link"] "for more"]) + ["see " [["a" {:href "https://www.example.com"}] "a link"] " for more"]) + (expect= (inline-markup "see \"a link\":https://www.example.com\nfor more") + ["see " [["a" {:href "https://www.example.com"}] "a link"] "\nfor more"]) )