Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Split long urls to new line #131

Open
LBsh opened this issue Jul 23, 2020 · 0 comments
Open

Split long urls to new line #131

LBsh opened this issue Jul 23, 2020 · 0 comments

Comments

@LBsh
Copy link

LBsh commented Jul 23, 2020

version: 0.13.0

command

import cats.syntax.either._
import io.circe.yaml._
import io.circe.yaml.syntax._

val json = io.circe.jawn.parse("""{"foo":{"description": "hello, this is a random url on circe repo. Please check this file https://github.com/circe/circe-yaml/blob/master/src/main/scala/io/circe/yaml/parser/package.scala"}}""").valueOr(throw _)
io.circe.yaml.Printer().pretty(json)

actual

"foo:
  description: hello, this is a random url on circe repo. Please check this file https://github.com/circe/circe-yaml/blob/master/src/main/scala/io/circe/yaml/parser/package.scala
"

expected

"foo:
  description: hello, this is a random url on circe repo. Please check this file 
  https://github.com/circe/circe-yaml/blob/master/src/main/scala/io/circe/yaml/parser/package.scala
"

This url exceeds 80 characters (the default max column) but is treated somehow as a single character so it stays in 1 line.
could we make it split to a new line?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant