summary refs log tree commit diff
diff options
context:
space:
mode:
authorStuart Mumford <stuart@cadair.com>2021-06-25 15:44:15 +0100
committerGitHub <noreply@github.com>2021-06-25 15:44:15 +0100
commit7fab2925b4e3b712a8d78dad5481c9729f8133d2 (patch)
treef95870878bcb17d480c6940a6734d7c91ad28485
parentUpdate src/timeline/TimelineModel.cpp (diff)
downloadnheko-7fab2925b4e3b712a8d78dad5481c9729f8133d2.tar.xz
Apply suggestions from code review
-rw-r--r--src/timeline/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/TimelineModel.cpp b/src/timeline/TimelineModel.cpp
index d77e4409..5f92aaae 100644
--- a/src/timeline/TimelineModel.cpp
+++ b/src/timeline/TimelineModel.cpp
@@ -534,7 +534,7 @@ TimelineModel::data(const mtx::events::collections::TimelineEvents &event, int r
                 formattedBody_.replace(matchImgUri, "\\1 src=\"image://mxcImage/\\2\"\\3");
                 // Same regex but for single quotes around the src
                 const static QRegularExpression matchImgUri2(
-                                                            "(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)");
+                  "(<img [^>]*)src=\'mxc://([^\']*)\'([^>]*>)");
                 formattedBody_.replace(matchImgUri2, "\\1 src=\"image://mxcImage/\\2\"\\3");
                 const static QRegularExpression matchEmoticonHeight(
                   "(<img data-mx-emoticon [^>]*)height=\"([^\"]*)\"([^>]*>)");