Skip to content

Commit

Permalink
Fixed empty lines when copying (9.5.18 regression)
Browse files Browse the repository at this point in the history
  • Loading branch information
squidfunk committed May 12, 2024
1 parent bd708f1 commit 937d7cc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion material/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{% endif %}
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.66ac8b77.min.css' | url }}">
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.732c4fb1.min.css' | url }}">
{% if config.theme.palette %}
{% set palette = config.theme.palette %}
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@
// Copying in progress - this class is set before the content is copied and
// removed after copying is done to mitigate whitespace-related issues.
code[data-md-copying] {
// Hack: since we're using grid layout when line spans are enabled, we need
// to set the display property to `initial` to prevent the grid layout from
// being applied to the code block when copying, because it will add empty
// lines to the copied content - see https://t.ly/wt4ye
display: initial;

// Temporarily remove highlighted lines - see https://bit.ly/32iVGWh
.hll {
Expand Down

0 comments on commit 937d7cc

Please sign in to comment.