X-Git-Url: http://git.shiar.nl/sheet.git/blobdiff_plain/53885bccd7945b6d1d39baef16290e086ce97027..dc1ab5f00eed170e75fe40687b381369a35760b8:/latinsample.js diff --git a/latinsample.js b/latinsample.js index a120c66..846e500 100644 --- a/latinsample.js +++ b/latinsample.js @@ -44,10 +44,12 @@ function appendsample() { output += cols[col].split(' ')[final ? 1 : 0]; } else if (col < cols.length) { - output += '' + (cols[col] || ' ') + ''; + var final = cols[col] || ' '; + if (!/^${final}`; + output += final; } else { - output += ' '; + output += ' '; } if (row.parentNode.tagName == 'THEAD') { output += col < 26 ? ' ' : '· '; // number separator