diff --git a/src/plugins/texteditor/textmark.cpp b/src/plugins/texteditor/textmark.cpp index a7a7288d8ce..32fabea7fcd 100644 --- a/src/plugins/texteditor/textmark.cpp +++ b/src/plugins/texteditor/textmark.cpp @@ -177,7 +177,7 @@ TextMark::AnnotationRects TextMark::annotationRects(const QRectF &boundingRect, const qreal fadeOutOffset) const { AnnotationRects rects; - rects.text = lineAnnotation(); + rects.text = lineAnnotation().simplified(); if (rects.text.isEmpty()) return rects; rects.fadeInRect = boundingRect;