iconvert from uri to path and not path to path - tttml - converters for a simpler syntax than markdown Err bitreich.org 70
hgit clone git://bitreich.org/tttml git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tttml URL:git://bitreich.org/tttml git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/tttml bitreich.org 70
1Log /scm/tttml/log.gph bitreich.org 70
1Files /scm/tttml/files.gph bitreich.org 70
1Refs /scm/tttml/refs.gph bitreich.org 70
1Tags /scm/tttml/tag bitreich.org 70
1README /scm/tttml/file/README.gph bitreich.org 70
i--- Err bitreich.org 70
1commit 332be10e3e3139840a4f021f6f6108fcfb32d064 /scm/tttml/commit/332be10e3e3139840a4f021f6f6108fcfb32d064.gph bitreich.org 70
1parent bd5225db743ed20a10451c667dcd8de42c6e1437 /scm/tttml/commit/bd5225db743ed20a10451c667dcd8de42c6e1437.gph bitreich.org 70
hAuthor: Josuah Demangeon <mail@josuah.net> URL:mailto:mail@josuah.net bitreich.org 70
iDate: Fri, 20 Apr 2018 14:42:16 +0200 Err bitreich.org 70
i Err bitreich.org 70
iconvert from uri to path and not path to path Err bitreich.org 70
i Err bitreich.org 70
iDiffstat: Err bitreich.org 70
i M markup-gopher | 4 ++-- Err bitreich.org 70
i Err bitreich.org 70
i1 file changed, 2 insertions(+), 2 deletions(-) Err bitreich.org 70
i--- Err bitreich.org 70
1diff --git a/markup-gopher b/markup-gopher /scm/tttml/file/markup-gopher.gph bitreich.org 70
i@@ -27,11 +27,11 @@ match($0, "^\\[[^]]*\\]: ") { Err bitreich.org 70
i port = PORT; tag = substr($0, 2, RLENGTH - 4); Err bitreich.org 70
i path = uri; type = "0"; Err bitreich.org 70
i Err bitreich.org 70
i- sub("^[ \t]*", "", path); Err bitreich.org 70
i+ sub("^[ \t]*", "", uri); Err bitreich.org 70
i Err bitreich.org 70
i if (match(uri, "^[01789aghI]/")) { Err bitreich.org 70
i path = uri; sub(".", "", path); Err bitreich.org 70
i- type = substr(path, 1, 1); Err bitreich.org 70
i+ type = substr(uri, 1, 1); Err bitreich.org 70
i } else if (sub("^gopher://&;, "", uri)) { Err bitreich.org 70
i path = uri; sub(".*/", "/", path); Err bitreich.org 70
i host = uri; sub("/.*", "", host); Err bitreich.org 70
.
Response:
text/plain