Giter Site home page Giter Site logo

Comments (3)

poznianski avatar poznianski commented on April 27, 2024 2

Hey @poznianski!

I actually noticed this too yesterday. From what I can tell the issue comes from Git's core.autocrlf option. The documentation builder seems to be interpreting the Windows \r\n as two line breaks. That puts us Windows users in a bit of a tricky position.

The good thing is that most modern IDEs on Windows support using LF as well CRLF. I would recommend setting core.autocrlf to input, which preserves the LF at checkout and converts any stray CRLFs to LFs at commit.

If you want to change this behavior machine-wide, run git config --global core.autocrlf input. If you only want to change it for just the one repo, cd to the repo and run git config core.autocrlf input.

I've not tested, but you might need to empty your stash or re-checkout the branch after reconfiguring git. I'd also close the IDE before you run the command.

Hope this helps!

Seems like you are right! But I have no opportunity to test it, coz I fixed this annoying bug more radically. I switched to Manjaro as my main operating system. There is no bug 😁

Thanks for your investigation!

from reactjs.org.

pwbriggs avatar pwbriggs commented on April 27, 2024 2

Well, I guess that works too! 😃

@poznianski I don't actually have the permissions to close this issue myself (not a collaborator on the repo or the author of the issue), so would you mind doing that? Thanks!

from reactjs.org.

pwbriggs avatar pwbriggs commented on April 27, 2024 1

Hey @poznianski!

I actually noticed this too yesterday. From what I can tell the issue comes from Git's core.autocrlf option. The documentation builder seems to be interpreting the Windows \r\n as two line breaks. That puts us Windows users in a bit of a tricky position.

The good thing is that most modern IDEs on Windows support using LF as well CRLF. I would recommend setting core.autocrlf to input, which preserves the LF at checkout and converts any stray CRLFs to LFs at commit.

If you want to change this behavior machine-wide, run git config --global core.autocrlf input. If you only want to change it for just the one repo, cd to the repo and run git config core.autocrlf input.

I've not tested, but you might need to empty your stash or re-checkout the branch after reconfiguring git. I'd also close the IDE before you run the command.

Hope this helps!

from reactjs.org.

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.