Saved image has breaken code structure
See original GitHub issueSaved 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:
- Created 6 years ago
- Comments:5 (1 by maintainers)
Top 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 >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
@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?
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.