decentral1se
3 years ago
No known key found for this signature in database
GPG Key ID: 3789458B3D0C410
1 changed files with
1 additions and
2 deletions
-
distribusi.go
|
@ -542,7 +542,6 @@ func trimFinalNewline(contents []byte) string { |
|
|
// return value.
|
|
|
// return value.
|
|
|
func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { |
|
|
func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { |
|
|
var href string |
|
|
var href string |
|
|
var caption string |
|
|
|
|
|
var unknown bool |
|
|
var unknown bool |
|
|
|
|
|
|
|
|
fname := filepath.Base(fpath) |
|
|
fname := filepath.Base(fpath) |
|
@ -559,7 +558,7 @@ func getHref(c *cli.Context, fpath string, mtype string) (bool, string, error) { |
|
|
href = fmt.Sprintf("<pre>%s</pre>", trimFinalNewline(fcontents)) |
|
|
href = fmt.Sprintf("<pre>%s</pre>", trimFinalNewline(fcontents)) |
|
|
} |
|
|
} |
|
|
} else if ftype == "image" { |
|
|
} else if ftype == "image" { |
|
|
caption = "" |
|
|
var caption string |
|
|
|
|
|
|
|
|
exifCaption, err := getCaption(c, fpath) |
|
|
exifCaption, err := getCaption(c, fpath) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|