question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Token lines displaying on a single line

See original GitHub issue

Expected:

Screen Shot 2019-04-01 at 12 42 43 PM

Actual:

Screen Shot 2019-04-01 at 12 05 32 PM

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.

Screen Shot 2019-04-01 at 12 47 20 PM

I’m seeing this in Chrome (v73.0.3683.86) on macOS (10.14.3)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
sofiapohcommented, Apr 3, 2019
1reaction
feycheniecommented, Apr 3, 2019

Yes, fixed with react-simple-code-editor@0.9.10 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found