Subject: | a whitespace-only photo description is impossible to change |
root/base/gallery/photo.tt contains:
<p id="description" >[% photo.description||loc('no description') %]<p>
If photo.description contains only whitespaces, the p element ends up
practically invisible and unclickable (don't ask me how the description
ended up consisting only of whitespaces: it came out of the camera like
that).
I changed it to:
<p id="description" >[%photo.description.remove('^\s+$')||loc('no
description')%]<p>
so at least in this case we can change the description.