sfu-dhil / wilde

eXist/XQuery app for detecting copying in a collection of XHTML documents.
GNU General Public License v3.0
2 stars 9 forks source link

String truncation should be done in CSS, not the HTML #87

Closed joeytakeda closed 3 years ago

joeytakeda commented 3 years ago

Right now, document.xql has a document:clip-string function, which trims the length of a string to a specific length and appends an ellipses if necessary. While that makes some sense if we're worried about bad headlines, it would be better to do this in CSS since it gives us greater control over how much of a headline is shown in different contexts, which we may need once #86 is resolved.