Comments (3)
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
toinput
, 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 rungit 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.
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.
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)
- broken Link ! HOT 2
- 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem., js engine: hermes
- Resetting state docs improvement HOT 4
- Social Icons not Vertically centered in Footer Section HOT 1
- Resetting state docs improvement 02 HOT 1
- Incorrect href in React learning documentation HOT 2
- Needed documentations for error boundary in react.dev
- Unnecessary Horizontal Scrollbar in Learn Section - Reacting to Input with State subsection - First city quiz - index.js
- [Suggestion]: Adding an Explanation Text to Optimizing Re-renders in useContext Section
- [Typo]: Inconsistency in the <form> element docs HOT 1
- Not found(ko.react.dev) HOT 1
- [Bug]: the scrollbar on the sidebar - not being clickable with the mouse HOT 2
- [Bug]: The "react.dev" survey asks about "beta.reactjs.org" documentation HOT 1
- Inavlid hook call HOT 3
- [Bug]: all new sandboxes (with ShowRenderedHTML) break HOT 2
- ReactDOM.render render to body without warning HOT 1
- [Typo]: `crossOrigin` and `as` values content HOT 1
- Broken link
- Left-Scroll-Bar[Bug]: HOT 3
- [Typo]: `<style>` syntax looks wrong HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactjs.org.