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.

Newlines in url stopped working

See original GitHub issue

The following yaml snippet isn’t rendered properly

abc:
  - line1
  - line2

after being converted to url

https://carbon.now.sh/?code=abc%3A%0A%20%20-%20line1%0A%20%20-%20line2%0A
2020-01-10 at 16 58

Everything after the first %0A character is discarded. This breaks editor integrations.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Timercommented, Jan 14, 2020

Yup, I plan on investigating soon to figure out the correct/intended behavior.

0reactions
mfix22commented, Jan 16, 2020

@Timer thanks so much for investigating. Will follow along there.

Read more comments on GitHub >

github_iconTop Results From Across the Web

url - Transmitting newline character "\n" - Stack Overflow
Try using %0A in the URL, just like you've used %20 instead of the space character.
Read more >
New Line and URL Question (URGENT) - MSDN - Microsoft
As I'm working with C# as primary language, I wasn't 100% sure about the use of \n and \r characters (come from VB5/6...
Read more >
URL navigation: line breaks for multi line texts not working?
Hi,. I tried giving the line breaks for a 'description' below field using the line break / carriage return = , but it...
Read more >
Line break in request URL causing request without params ...
Ok, I know that it is highly unlikely that somebody will accidentally add a line break to the URL bar of Postman (at...
Read more >
New line character %250A in URL: Apache throws 404 error
Anyway if I replace %250A with %0A it still doesn't work on the production server, but works on localhost.
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