Commit 55de627a authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix indentation (clang-format)

parent ebf6737b
Pipeline #265253 passed with stage
in 6 minutes and 36 seconds
......@@ -325,7 +325,7 @@ void SubtitleModel::importSubtitle(const QString &filePath, int offset, bool ext
end = dialogue.at(2);
endPos = stringtoTime(end)/transformMult;
// Text field is always the last field, since it can have commas
comment = line.section(",", numEventFields-1);
comment = line.section(",", numEventFields - 1);
// qDebug()<<"Start: "<< start << "End: "<<end << comment;
if (endPos > startPos) {
addSubtitle(startPos + subtitleOffset, endPos + subtitleOffset, comment, undo, redo, false);
......
......@@ -115,9 +115,7 @@ TEST_CASE("Read subtitle file", "[Subtitles]")
REQUIRE(subtitleModel->rowCount() == 2);
QList<SubtitledTime> allSubs = subtitleModel->getAllSubtitles();
QStringList subtitlesText;
QStringList control = {
QStringLiteral("Line with one comma, second part."),
QStringLiteral("Line with two commas, second part, third part.")};
QStringList control = {QStringLiteral("Line with one comma, second part."), QStringLiteral("Line with two commas, second part, third part.")};
for (const auto &s : qAsConst(allSubs)) {
subtitlesText << s.subtitle();
}
......
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