Skip to content

Improved comment truncation

Hannes Heine requested to merge pr1925head into pr1925base

Created by: Tirokk

alina-beck Authored by alina-beck Merged


🍰 Pullrequest

  • use constants for comment truncation, as suggested by @Tirokk in PR #1903
  • only truncate comments with more than 300 characters

At the moment also comments with 182 characters are shortened to 180 characters – so it looks weird when expanding and collapsing. When we increase the difference (300 is my suggestion) we make sure to truncate only when it makes a noticeable difference.

as @datenbrei kindly pointed out this also fixes #1795 (closed) 😉

Merge request reports