mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
Vi: support align and indent commands
This commit is contained in:
parent
91527aed58
commit
edfdd68c36
@ -1 +1 @@
|
||||
Subproject commit 8bcd2f0416df45409bb3b97c330adea7e3e3295b
|
||||
Subproject commit 76a963c0e2ac488001872ac6f324ba1c8b177bfd
|
@ -1,6 +1,7 @@
|
||||
#include "graphvizhelper.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
|
||||
#include <utils/processutils.h>
|
||||
|
||||
@ -37,7 +38,7 @@ void GraphvizHelper::prepareProgramAndArgs(const QString &p_graphvizFile,
|
||||
p_program.clear();
|
||||
p_args.clear();
|
||||
|
||||
p_program = p_graphvizFile.isEmpty() ? QStringLiteral("dot") : p_graphvizFile;
|
||||
p_program = p_graphvizFile.isEmpty() ? QStringLiteral("dot") : QDir::toNativeSeparators(p_graphvizFile);
|
||||
}
|
||||
|
||||
QPair<bool, QString> GraphvizHelper::testGraphviz(const QString &p_graphvizFile)
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "plantumlhelper.h"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QDir>
|
||||
|
||||
#include <utils/processutils.h>
|
||||
|
||||
@ -58,12 +59,12 @@ void PlantUmlHelper::prepareProgramAndArgs(const QString &p_plantUmlJarFile,
|
||||
|
||||
p_args << "-Djava.awt.headless=true";
|
||||
|
||||
p_args << "-jar" << p_plantUmlJarFile;
|
||||
p_args << "-jar" << QDir::toNativeSeparators(p_plantUmlJarFile);
|
||||
|
||||
p_args << "-charset" << "UTF-8";
|
||||
|
||||
if (!p_graphvizFile.isEmpty()) {
|
||||
p_args << "-graphvizdot" << p_graphvizFile;
|
||||
p_args << "-graphvizdot" << QDir::toNativeSeparators(p_graphvizFile);
|
||||
}
|
||||
|
||||
p_args << "-pipe";
|
||||
|
Loading…
x
Reference in New Issue
Block a user