Browse Source

Fix cdb list rendering when only text

Clement Espeute 3 years ago
parent
commit
5d3e6c8c29
1 changed files with 7 additions and 2 deletions
  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>';
 				inline function char(s) return '<span class="minor">$s</span>';
 				if (vals.length == 0)
 				if (vals.length == 0)
 					continue;
 					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();
 			scope.pop();
 			if( out.length == 0 )
 			if( out.length == 0 )