1
1
Fork 0
mirror of https://tildegit.org/solderpunk/molly-brown synced 2024-05-12 03:46:03 +02:00

Fix bug with long filenames or titles.

This commit is contained in:
Solderpunk 2020-07-04 13:13:58 +02:00
parent 48aed1398d
commit b9334e07a9

View File

@ -88,7 +88,7 @@ func generatePrettyFileLabel(info os.FileInfo, path string, config Config) strin
name = readHeading(path, info)
}
if len(name) > 40 {
name = info.Name()[:36] + "..."
name = name[:36] + "..."
}
if info.IsDir() {
name += "/"