SMOLNET PORTAL home about changes
iadd latest changes from ~/bin and remove it from ~/bin - 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 7b9791b74ab0b32f728884b0416ac55c9825f0d0	/scm/tttml/commit/7b9791b74ab0b32f728884b0416ac55c9825f0d0.gph	bitreich.org	70
1parent e5f695470b3ce7553e2e1609b9341e957f5fceae	/scm/tttml/commit/e5f695470b3ce7553e2e1609b9341e957f5fceae.gph	bitreich.org	70
hAuthor: Josuah Demangeon <mail@josuah.net>	URL:mailto:mail@josuah.net	bitreich.org	70
iDate:   Thu, 19 Apr 2018 03:57:29 +0200	Err	bitreich.org	70
i	Err	bitreich.org	70
iadd latest changes from ~/bin and remove it from ~/bin	Err	bitreich.org	70
i	Err	bitreich.org	70
iDiffstat:	Err	bitreich.org	70
i  M markup-gopher                       |      12 +++++-------	Err	bitreich.org	70
i	Err	bitreich.org	70
i1 file changed, 5 insertions(+), 7 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@@ -28,21 +28,19 @@ match($0, "^\\[[^]]*\\]: ") {	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-        if (match(path, "/$"))	Err	bitreich.org	70
i+        if (match(uri, "/$"))	Err	bitreich.org	70
i                 type = "1";	Err	bitreich.org	70
i-        else if (match(path, "^[01789aghI]/")) {	Err	bitreich.org	70
i+        else if (match(uri, "^[01789aghI]/")) {	Err	bitreich.org	70
i                 type = substr(path, 1, 1);	Err	bitreich.org	70
i-                sub(".", "", path);	Err	bitreich.org	70
i-        }	Err	bitreich.org	70
i-	Err	bitreich.org	70
i-        if (sub("^gopher://&;, "", uri)) {	Err	bitreich.org	70
i+                path = uri; sub(".", "", path);	Err	bitreich.org	70
i+        } else if (sub("^gopher://&;, "", uri)) {	Err	bitreich.org	70
i                 host = uri; sub("/.*", "", host);	Err	bitreich.org	70
i                 path = uri; sub(".*/", "/", path);	Err	bitreich.org	70
i                 if (match(host, "[a-z.-]+:")) {	Err	bitreich.org	70
i                         port = substr(host, RLENGTH + 1);	Err	bitreich.org	70
i                         host = substr(host, RSTART, RLENGTH - 1);	Err	bitreich.org	70
i                 }	Err	bitreich.org	70
i-        } else if (match(uri, "^[a-z0-9-]+:")) {	Err	bitreich.org	70
i+        } else {	Err	bitreich.org	70
i                 type = "h"; host = ""; port = "";	Err	bitreich.org	70
i                 path = "URL:" uri;	Err	bitreich.org	70
i         }	Err	bitreich.org	70
.
Response: text/plain
Original URLgopher://bitreich.org/0/scm/tttml/commit/7b9791b74ab0b32f...
Content-Typetext/plain; charset=utf-8