Commit 8756b751 authored by Ricardo J. Mendez's avatar Ricardo J. Mendez

Better handling when shortening the label

I was shortening it only if the title was empty, but it's possible that
the title is the same as the URL for whatever reason (the page was
done to report that way). Changing comparison.
parent 9d240007
......@@ -212,7 +212,7 @@
label (if (empty? title)
url
title)
display (if (and (empty? title)
display (if (and (= url label)
(< 80 (count label)))
(apply str (concat (take 80 label) "..."))
label)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment