[education/rkward] rkward: Keep slashes and parentheses where they belong despite rtl text direction

Thomas Friedrichsmeier null at kde.org
Sat May 14 20:31:45 BST 2022


Git commit 33f24aca09d4cea69c6f5923dbfab66fea25bdf9 by Thomas Friedrichsmeier.
Committed on 14/05/2022 at 19:31.
Pushed by tfry into branch 'master'.

Keep slashes and parentheses where they belong despite rtl text direction

M  +1    -1    rkward/pages/rkward_welcome.rkh
M  +1    -1    rkward/windows/rkhtmlwindow.cpp

https://invent.kde.org/education/rkward/commit/33f24aca09d4cea69c6f5923dbfab66fea25bdf9

diff --git a/rkward/pages/rkward_welcome.rkh b/rkward/pages/rkward_welcome.rkh
index c79fc0a3..21136a7c 100644
--- a/rkward/pages/rkward_welcome.rkh
+++ b/rkward/pages/rkward_welcome.rkh
@@ -19,7 +19,7 @@
 		<ul>
 	<li><link href="rkward://actions/rpackage_install">Install R and RKWard packages</link></li>
 	<li><link href="rkward://settings/addons">Further add-on related settings</link></li>
-	<li><link href="rkward://settings/general">Startup options</link> (including this page)</li>
+	<li>‎<link href="rkward://settings/general">Startup options</link> (including this page)‎</li>
 		</ul>
 	</section>
 
diff --git a/rkward/windows/rkhtmlwindow.cpp b/rkward/windows/rkhtmlwindow.cpp
index c81bce38..b94df852 100644
--- a/rkward/windows/rkhtmlwindow.cpp
+++ b/rkward/windows/rkhtmlwindow.cpp
@@ -1144,7 +1144,7 @@ bool RKHelpRenderer::renderRKHelp (const QUrl &url, RKHTMLWindow* container) {
 					}
 				}
 				for (int i = 0; i < list.size(); ++i) {
-					writeHTML(QString("<li><a href=\"rkward://open/%1/%2\" title=\"%2\">%3</a></li>\n").arg(category, list[i].url(), RKCommonFunctions::escape(list[i].url(QUrl::PreferLocalFile))));
+					writeHTML(QString("<li>‎<a href=\"rkward://open/%1/%2\" title=\"%2\">%3</a></li>\n").arg(category, list[i].url(), RKCommonFunctions::escape(list[i].url(QUrl::PreferLocalFile))));
 				}
 				writeHTML("</ul>\n");
 				writeHTML(QString("<form action=\"rkward://open/%1/\"><button type=\"submit\">%3</button></form>\n").arg(category, i18n("Choose another file")));


More information about the rkward-tracker mailing list