diff --git a/distribusi.go b/distribusi.go index 964486d..25e1340 100644 --- a/distribusi.go +++ b/distribusi.go @@ -635,14 +635,14 @@ func mkDiv(c *cli.Context, mtype string, href, fname string, unknown bool) (stri filename := fmt.Sprintf("%s", fname) - ftype, _ := parseMtype(mtype) + ftype, stype := parseMtype(mtype) if ftype == "text" { divTag := "
%s%s
" div = fmt.Sprintf(divTag, fname, ftype, href, filename) } else if ftype == "os" { - divTag := "
%s
" - div = fmt.Sprintf(divTag, fname, ftype, href) + divTag := "
%s
" + div = fmt.Sprintf(divTag, fname, stype, href) } else { if unknown { // we really don't know what this is, so the filename is the href and we