latin: omit span container on sample svg
[sheet.git] / latinsample.js
index 406cac12cdb355f3dd38070c9ccf7172ead633ec..846e5004fa97a9b8529c9251c929dcef7006521e 100644 (file)
@@ -44,7 +44,9 @@ function appendsample() {
                                output += cols[col].split(' ')[final ? 1 : 0];
                        }
                        else if (col < cols.length) {
-                               output += '<span>' + (cols[col] || ' ') + '</span>';
+                               var final = cols[col] || ' ';
+                               if (!/^<svg/.test(cols[col])) final = `<span>${final}</span>`;
+                               output += final;
                        }
                        else {
                                output += '<b> </b>';