Greatest Moments in Shuffle iT history

Previous topic - Next topic

singletee

The reason that the log copies weirdly (apparently only on Firefox) is that <div> HTML tags are used instead of <span>s to tag the various pieces of text like card names within the log. <div>s naturally create a line break before and after them, so Firefox is dutifully inserting those breaks in the copied text. Chrome, OTOH, seems to take applied CSS styles (like display:inline that is probably used on those tags) into account, so you don't see line breaks there. The proper fix would be for Shuffle iT to replace those <div>s with <span>s.

markus

Quote from: singletee on 09 January 2017, 11:01:21 PM
The reason that the log copies weirdly (apparently only on Firefox) is that <div> HTML tags are used instead of <span>s to tag the various pieces of text like card names within the log. <div>s naturally create a line break before and after them, so Firefox is dutifully inserting those breaks in the copied text. Chrome, OTOH, seems to take applied CSS styles (like display:inline that is probably used on those tags) into account, so you don't see line breaks there. The proper fix would be for Shuffle iT to replace those <div>s with <span>s.

Bringing that up again, even though it should be in the bug forum. That seems like an easy fix that would allow copying logs also from Firefox (Windows) in a nice way.