From b42ed942f29bd46c7bde34c131347f0a17657a32 Mon Sep 17 00:00:00 2001
From: ezsh <ezsh.junk@gmail.com>
Date: Mon, 27 May 2019 21:13:49 +0200
Subject: [PATCH] Escape target condition because SugarCube interprets '=='

---
 src/js/rulesAssistant.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/js/rulesAssistant.js b/src/js/rulesAssistant.js
index e801b1f6897..78bb68b3d45 100644
--- a/src/js/rulesAssistant.js
+++ b/src/js/rulesAssistant.js
@@ -460,7 +460,7 @@ window.RASummaryCell = function() {
 
 		function ruleSetValueToString(v) {
 			if (typeof v === 'object' && v.hasOwnProperty('cond') && v.hasOwnProperty('val')) {
-				return `${v.cond}&thinsp;${v.val}`;
+				return `<nowiki>${v.cond} ${v.val}</nowiki>`;
 			}
 			return `${v}`;
 		}
-- 
GitLab