add tsv and csv as text type - www.codemadness.org - www.codemadness.org saait content files (HTM) git clone git://git.codemadness.org/www.codemadness.org (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit c2ed71eddc3613fa09c2c51cded659c85313355d (DIR) parent d9f1e9b080a457f072eafde51f8146e316e07e0f (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Fri, 14 Apr 2023 12:16:06 +0200 add tsv and csv as text type Diffstat: M output/phlog/atom | 4 ++-- M scripts/md2gopher.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) --- (DIR) diff --git a/output/phlog/atom b/output/phlog/atom @@ -23,8 +23,8 @@ i codemadness.org 70 i codemadness.org 70 0## sfeed TAB-separated format /sfeed.1.txt codemadness.org 70 i codemadness.org 70 -9* Feed, smaller filesize with only a summary: »sfeed.tsv«. /sfeed.tsv codemadness.org 70 -9* Feed with content: »sfeed_content.tsv«. /sfeed_content.tsv codemadness.org 70 +0* Feed, smaller filesize with only a summary: »sfeed.tsv«. /sfeed.tsv codemadness.org 70 +0* Feed with content: »sfeed_content.tsv«. /sfeed_content.tsv codemadness.org 70 i codemadness.org 70 iDocumentation: codemadness.org 70 0* sfeed TAB-separated data format documentation. /sfeed.1.txt codemadness.org 70 (DIR) diff --git a/scripts/md2gopher.sh b/scripts/md2gopher.sh @@ -73,7 +73,7 @@ function parseurl(s) { # detect Gopher type by extension/filename/path/URL. function detecttype(s) { s = tolower(s); # case-insensitive - if (match(s, /\.(txt|md|sh|mk|c|h|pl|s|css|js|xml|mbox|sha256|patch|diff|conf|vim|json)$/)) + if (match(s, /\.(txt|md|sh|mk|c|h|pl|s|css|js|xml|mbox|sha256|patch|diff|conf|vim|json|tsv|csv)$/)) return "0"; # text if (match(s, /(^|[\/])(Makefile|README|TODO|cgitrc)$/)) return "0"; # text