Token lines displaying on a single line
See original GitHub issueExpected:
Actual:
This is what I’m seeing in a brand new create-react-app repo (https://github.com/jonmilner/react-live) with the following code:
import * as React from "react";
import { render } from "react-dom";
import { LiveProvider, LiveEditor, LiveError, LivePreview } from "react-live";
const code = `<div>
<div>
<h1>Hello World</h1>
</div>
</div>`;
function App() {
return (
<LiveProvider code={code}>
<LivePreview />
<LiveError />
<LiveEditor />
</LiveProvider>
);
}
const rootElement = document.getElementById("root");
render(<App />, rootElement);
Interestingly, removing display: inline
from the selector .npm__react-simple-code-editor__container > pre *
in the browser dev tools fixes the issue. However, it doesn’t seem it can be fixed by overriding the style with any valid property.
I’m seeing this in Chrome (v73.0.3683.86) on macOS (10.14.3)
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
how to print some of tokens in a line in MapReduce format?
If you use TextInputFormat, the key of map is line number and the value is line content. You don't need split lines. just...
Read more >How are space tokens and empty lines processed by long ...
Space tokens are similarly processed at this early stage. Spaces at the end of the line and the beginning of the next are...
Read more >Along The Same Line/ By The Same Token - LingQ
"Along the same lines" means "on the same topic/subject". It means the same as another expression, "in the same vein". See the following...
Read more >For - Loop through command output - Windows CMD - SS64
To select that one line of output, you can search for the text "loss" (which is always present), then use the Tokens parameter...
Read more >Types of Devices You Can Use to Display the Token Number
1. Number of characters (digits or alphabets) that can be displayed in a single line 2. The number of lines or number of...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This should be fixed by https://github.com/satya164/react-simple-code-editor/commit/a704a08c8a1727297aff2e32f70dfe97db1173c0, let me know if the problem persists!
Yes, fixed with react-simple-code-editor@0.9.10 😃