dot

packages and services management
Log | Files | Refs | README

commit 72b3ea4a82ecdc50b1ba71ca4ff0dfaffa440e74
parent f5b14073f71b3ae8bf0b91d15b273f7ea327ec36
Author: Josuah Demangeon <mail@josuah.net>
Date:   Mon, 27 Nov 2017 16:05:58 +0100

more compact cleanter layout

Diffstat:
Mbin/gph-html | 30++++--------------------------
1 file changed, 4 insertions(+), 26 deletions(-)

diff --git a/bin/gph-html b/bin/gph-html @@ -63,38 +63,16 @@ f[1] == "i" { next; } -f[1] == "0" { - print(link("file", f)); - next; -} - -f[1] == "1" { - print(link("dir/", f)); - next; -} - -f[1] == "8" { - print(link("tnet", f)); - next; -} - -f[1] == "h" { - print(link("link", f)); - next; -} +f[1] == "0" { print(link("file", f)); next; } +f[1] == "1" { print(link("dir/", f)); next; } +f[1] == "8" { print(link("tnet", f)); next; } +f[1] == "h" { print(link("link", f)); next; } f[1] == "g" || f[1] == "I" { printf("<img alt=\"%s\" src=\"%s\"/>", esc(f[2]), url(f)); next; } -{ - for(i = 1; i <= 5; i++) - printf("[%s]", f[i]); - print(""); - next; -} - END { print("</pre>"); }