Coder Social home page Coder Social logo

Comments (8)

squidfunk avatar squidfunk commented on June 1, 2024 1

Fixed in 937d7cc. I was able to reproduce it and found out that it's related to 4eb1a43, which fixes line highlights on mobile, but introduced the side effect of empty lines when copying.

from mkdocs-material.

squidfunk avatar squidfunk commented on June 1, 2024 1

I'm in the process of creating a release for this. "9.5.18 regression" means the bug was introduced in 9.5.18 and it worked before, which was confirmed by the OP, saying that downgrading to 9.5.17 fixes the issue.

from mkdocs-material.

jippi avatar jippi commented on June 1, 2024 1

Thank you @squidfunk ❤️

from mkdocs-material.

facelessuser avatar facelessuser commented on June 1, 2024

This seems to have been introduced in one of the recent Material releases. Locally, I had mkdocs-material-9.5.6, but after updating to mkdocs-material-9.5.21, I was able to reproduce the issue.

I should note that I could only reproduce with the line_spans: __span option. I suspect that the copy logic gets tripped up by line spans and injects extra new lines. That is my guess at least.

from mkdocs-material.

squidfunk avatar squidfunk commented on June 1, 2024

Thanks for reporting. Please provide a minimal reproduction, as requested by our bug reporting guidelines.

from mkdocs-material.

jippi avatar jippi commented on June 1, 2024

Bisecting releases, it works as expected in 9.5.17 and fails in 9.5.18 and above; and removing line_spans: __span makes it work across all versions

from mkdocs-material.

luonghuyquang avatar luonghuyquang commented on June 1, 2024

You did 'Fixed empty lines when copying (9.5.18 regression)'.
Do we need to install specific version 9.5.18?
An upgrade would install 9.5.21 again.

from mkdocs-material.

squidfunk avatar squidfunk commented on June 1, 2024

Released as part of 9.5.22.

from mkdocs-material.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.