Przeglądaj źródła

Fix cdb list rendering when only text

Clement Espeute 3 lat temu
rodzic
commit
5d3e6c8c29
1 zmienionych plików z 7 dodań i 2 usunięć
  1. 7 2
      hide/comp/cdb/Cell.hx

+ 7 - 2
hide/comp/cdb/Cell.hx

@@ -353,8 +353,13 @@ class Cell {
 				inline function char(s) return '<span class="minor">$s</span>';
 				if (vals.length == 0)
 					continue;
-				var v = vals.length == 1 ? vals[0] : (char('[') + vals.join(char(',')) + char(']'));
-				out.push(v);
+				else if (vals.length == 1) {
+					out.push(v);
+				}
+				else {
+					out.push((char('[') + vals.join(char(',')) + char(']')));
+					isHtml = true;
+				}
 			}
 			scope.pop();
 			if( out.length == 0 )