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.

Saved image has breaken code structure

See original GitHub issue

Saved image has invalid line breaks

Save image from (Firefox) https://carbon.now.sh/?bg=rgba(171, 184, 195, 1)&t=material&l=auto&ds=false&wc=false&wa=false&pv=0px&ph=0px&ln=true&code={ "name": "test-yarn", "version": "1.0.0", "main": "index.js", "license": "MIT", "scripts": { "test": "echo yarn!" } }%0A

Expected Behavior

correct rendering of

{
  "name": "test-yarn",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
  	"test": "echo yarn!"
  }
}

Actual Behavior

It moves “test”: “echo yarn!” outside the script block

{
  "name": "test-yarn",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "scripts": {
  	
  } "test": "echo yarn!"
}

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
mfix22commented, Dec 23, 2017

@JohnPhamous @maloletniy, looks like this is just due to us missing some FireFox specific CSS. We are on it.

@jakedex can you take a look when you get the chance?

0reactions
jakedexcommented, Jan 3, 2018

So it looks like dom-to-image has issues loading fonts from external stylesheets. The browser was falling back to a default font, resulting in the weird spacing issues. This should be fixed with #149.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix a Broken Image on a Website [Guide]
The first thing to check is whether or not the image actually exists in the place that you think it should be. This...
Read more >
Methods to Fix Broken or Corrupt JPEG Header Easily
A broken or corrupt JPEG header is a common issue for image files today; read this article to find out how to fix...
Read more >
4 Ways to Handle Missing Images on a Website (Beginner's ...
To help mitigate the negative consequences of broken images, I'll share 4 different ways to better handle missing images on your website.
Read more >
7 Reasons Why Images Are Not Loading on Your Website
Website images fail to load for one of these seven common reasons. ... Broken images adversely affect your site's usability.
Read more >
Github: How to fix broken image paths
Depending on our Github repository's structure, we will have to tweak HTML/CSS code to make the file paths work again.
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