php / web-doc

http://doc.php.net
33 stars 84 forks source link

Experiment using table for diffs #34

Closed lhsazevedo closed 2 years ago

lhsazevedo commented 2 years ago

It seems that GitHub avoids the blank line issue when copying code from diffs by using a table to display them.

I ended up using divs back in #29 because our tables have global styles that need to be manually removed. This isn't ideal because the global table styles can change, and we would need to update the diff styles whenever this happens.

We can try using the display: table-* property to still render the diff as a table but using div tags, avoiding the global styles.

lhsazevedo commented 2 years ago

@nilgun Could you assign me to this issue?