Skip to content

Commit 937d7cc

Browse files
committed
Fixed empty lines when copying (9.5.18 regression)
1 parent bd708f1 commit 937d7cc

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

material/templates/assets/stylesheets/main.66ac8b77.min.css renamed to material/templates/assets/stylesheets/main.732c4fb1.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/assets/stylesheets/main.66ac8b77.min.css.map renamed to material/templates/assets/stylesheets/main.732c4fb1.min.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

material/templates/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
{% endif %}
4545
{% endblock %}
4646
{% block styles %}
47-
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.66ac8b77.min.css' | url }}">
47+
<link rel="stylesheet" href="{{ 'assets/stylesheets/main.732c4fb1.min.css' | url }}">
4848
{% if config.theme.palette %}
4949
{% set palette = config.theme.palette %}
5050
<link rel="stylesheet" href="{{ 'assets/stylesheets/palette.06af60db.min.css' | url }}">

src/templates/assets/stylesheets/main/extensions/pymdownx/_highlight.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,11 @@
222222
// Copying in progress - this class is set before the content is copied and
223223
// removed after copying is done to mitigate whitespace-related issues.
224224
code[data-md-copying] {
225+
// Hack: since we're using grid layout when line spans are enabled, we need
226+
// to set the display property to `initial` to prevent the grid layout from
227+
// being applied to the code block when copying, because it will add empty
228+
// lines to the copied content - see https://t.ly/wt4ye
229+
display: initial;
225230

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

0 commit comments

Comments
 (0)