Skip to content

Commit 5cd13e8

Browse files
committed
lint: format code
Signed-off-by: Patrizio Bekerle <[email protected]>
1 parent d7c890c commit 5cd13e8

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dialogs/joplinimportdialog.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,8 @@ void JoplinImportDialog::handleImages(Note& note, const QString& dirPath) {
403403

404404
// Handle format: [![](:/imageId "hover text")]
405405
{
406-
auto i = QRegularExpression(R"regex(!\[([^\]]*)\]\(:\/([\w\d]+)\s+"([^"]*)"\))regex").globalMatch(noteText);
406+
auto i = QRegularExpression(R"regex(!\[([^\]]*)\]\(:\/([\w\d]+)\s+"([^"]*)"\))regex")
407+
.globalMatch(noteText);
407408

408409
while (i.hasNext()) {
409410
QRegularExpressionMatch match = i.next();
@@ -435,7 +436,7 @@ void JoplinImportDialog::handleImages(Note& note, const QString& dirPath) {
435436
// Handle format: <img src=":/imageId" ... />
436437
{
437438
auto i = QRegularExpression(R"(<img\s+(?:[^>]*\s+)?src=\":\/([\w\d]+)\"[^>]*\/?>)")
438-
.globalMatch(noteText);
439+
.globalMatch(noteText);
439440

440441
while (i.hasNext()) {
441442
QRegularExpressionMatch match = i.next();

src/entities/note.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4247,8 +4247,7 @@ QString Note::getInsertMediaMarkdown(QFile *file, bool addNewLine, bool returnUr
42474247
QObject::tr("Image file already exists in the media folder, "
42484248
"do you want to use the existing one instead of creating a new file?"),
42494249
QStringLiteral("insert-media-use-existing-image"),
4250-
QMessageBox::Yes | QMessageBox::No,
4251-
QMessageBox::No,
4250+
QMessageBox::Yes | QMessageBox::No, QMessageBox::No,
42524251
QMessageBox::StandardButtons()) == QMessageBox::Yes) {
42534252
useExistingFile = true;
42544253
}

0 commit comments

Comments
 (0)