properly display swatches for copy+pasted lines