[education/rkward] rkward/misc: Revert breakage of unescape algorithm in f57b5b574b1f6706060f67bece879f45349237ee
Thomas Friedrichsmeier
null at kde.org
Mon Apr 28 20:48:21 BST 2025
Git commit 5a031ff9903c1ad30336a3fdbd57e29fc9ef8d8d by Thomas Friedrichsmeier.
Committed on 28/04/2025 at 19:48.
Pushed by tfry into branch 'master'.
Revert breakage of unescape algorithm in f57b5b574b1f6706060f67bece879f45349237ee
M +1 -1 rkward/misc/rkcommonfunctions.cpp
https://invent.kde.org/education/rkward/-/commit/5a031ff9903c1ad30336a3fdbd57e29fc9ef8d8d
diff --git a/rkward/misc/rkcommonfunctions.cpp b/rkward/misc/rkcommonfunctions.cpp
index 99cd560c3..e30d29179 100644
--- a/rkward/misc/rkcommonfunctions.cpp
+++ b/rkward/misc/rkcommonfunctions.cpp
@@ -216,9 +216,9 @@ namespace RKCommonFunctions {
if (c == u'\\') {
++i;
if (i >= in.size()) break;
+ c = in[i]; // NOTE: Quote (") and backslash (\) are escaped by the same symbol, i.e. c = in[i] is good enough
if (c == u'n') c = u'\n';
else if (c == u't') c = u'\t';
- else c = in[i]; // NOTE: Quote (") and backslash (\) are escaped by the same symbol, i.e. c = in[i] is good enough
}
out.append(c);
}
More information about the rkward-tracker
mailing list