[education/rkward] rkward: remove excessive escapes
Thomas Friedrichsmeier
null at kde.org
Mon Apr 28 20:48:21 BST 2025
Git commit 691e7f3b9743b17265140a14f1530b7c5c7c2477 by Thomas Friedrichsmeier.
Committed on 28/04/2025 at 19:48.
Pushed by tfry into branch 'master'.
remove excessive escapes
M +1 -1 rkward/core/robject.cpp
M +1 -1 rkward/misc/rkcommonfunctions.cpp
M +1 -1 rkward/settings/rksettingsmoduleoutput.cpp
https://invent.kde.org/education/rkward/-/commit/691e7f3b9743b17265140a14f1530b7c5c7c2477
diff --git a/rkward/core/robject.cpp b/rkward/core/robject.cpp
index 63b007846..d7b755fa1 100644
--- a/rkward/core/robject.cpp
+++ b/rkward/core/robject.cpp
@@ -723,7 +723,7 @@ QStringList RObject::parseObjectPath(const QString &path) {
for (int i = 0; i < end; ++i) {
QChar c = path.at(i);
if (quote_char.isNull()) {
- if (c == u'\'' || c == u'\"' || c == u'`') {
+ if (c == u'\'' || c == u'"' || c == u'`') {
quote_char = c;
} else {
if (!seek_bracket_end) {
diff --git a/rkward/misc/rkcommonfunctions.cpp b/rkward/misc/rkcommonfunctions.cpp
index e30d29179..3b3aab8a3 100644
--- a/rkward/misc/rkcommonfunctions.cpp
+++ b/rkward/misc/rkcommonfunctions.cpp
@@ -141,7 +141,7 @@ namespace RKCommonFunctions {
for (int i=0; i <= line_end; ++i) {
QChar c = context_line.at (i);
- if (c == u'\'' || c == u'\"' || c == u'`') {
+ if (c == u'\'' || c == u'"' || c == u'`') {
i = quoteEndPosition (c, context_line, i+1);
if (i < 0) break;
continue;
diff --git a/rkward/settings/rksettingsmoduleoutput.cpp b/rkward/settings/rksettingsmoduleoutput.cpp
index e6f26ac65..15822c087 100644
--- a/rkward/settings/rksettingsmoduleoutput.cpp
+++ b/rkward/settings/rksettingsmoduleoutput.cpp
@@ -226,7 +226,7 @@ QStringList RKSettingsModuleOutput::makeRRunTimeOptionCommands () {
command.append(u", \"rk.graphics.height\"="_s + QString::number(graphics_height));
if (graphics_type == "\"JPG\""_L1) command.append(u", \"rk.graphics.jpg.quality\"="_s + QString::number(graphics_jpg_quality));
command.append(u", \"rk.output.css.file\"=\""_s +
- (custom_css_file.get().isEmpty() ? RKCommonFunctions::getRKWardDataDir() + u"pages/rkward_output.css"_s : custom_css_file.get()) + u'\"');
+ (custom_css_file.get().isEmpty() ? RKCommonFunctions::getRKWardDataDir() + u"pages/rkward_output.css"_s : custom_css_file.get()) + u'"');
list.append(command + u")\n"_s);
return (list);
More information about the rkward-tracker
mailing list