diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-18 21:47:31 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-18 21:47:34 +0200 |
commit | a791c8a76d8a5caa24b2c17436dec6aadd4d7e42 (patch) | |
tree | 94d6bb7662def28b7d1e5cb1b7f6fb594b287c9b /src/plugins | |
parent | 4fe0a037c82332e84b16a6f0e2847a2f9a0bd5d7 (diff) |
Matrix: add support for mp4 files with ftypmp42 magic number
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/Matrix.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index d81c53c..f7364d1 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -801,15 +801,15 @@ namespace QuickMedia { string_split(body, '\n', [&formatted_body, &contains_formatted_text, &line](const char *str, size_t size){ if(line > 0) formatted_body += "<br/>"; + std::string line_str(str, size); + html_escape_sequences(line_str); if(size > 0 && str[0] == '>') { - std::string line(str, size); - html_escape_sequences(line); formatted_body += "<font color=\"#789922\">"; - formatted_body += line; + formatted_body += line_str; formatted_body += "</font>"; contains_formatted_text = true; } else { - formatted_body.append(str, size); + formatted_body += line_str; } ++line; return true; |