Commit d0e0bb7b authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Trim the snippets to avoid adding superfluous newlines at the end

Reviewed-by: Leandro Melo
Reviewed-by: hjk
parent d74c4f8a
......@@ -77,7 +77,7 @@ const QList<CompletionItem> &SnippetsParser::execute(ICompletionCollector *colle
item.text += QLatin1Char(' ');
item.text += description;
} = QVariant::fromValue(data); = QVariant::fromValue(data.trimmed());
QString infotip = data;
while (infotip.size() &&
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment