Superfluous new line between key and a long value after to_yaml()

Open
#307 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python, yaml
Domain
data

Research direction

Start by locating the to_yaml() implementation and reproduce the issue with a value around 2500 characters in a YAML file. Check the generated output around the key and colon; done means the long token remains on the same line as its key and remains usable.

Written by the indexing model from the issue text.

Description

For long values updated in a yaml file it seems that an unexpected new line is added between key and value (after colon):

  devid: xxxxyxyxyx-9eeeee-412ae-8342-2c6436dsrff
  token: 
    v^1.1#i^1#p^3 ...............................XX==  (2500 characters!)

The expected format is

  devid: xxxxyxyxyx-9eeeee-412ae-8342-2c6436dsrff
  token:  v^1.1#i^1#p^3 ...............................XX==

Because of the newline the token is unusable.

Dominant language
Python
Stars
2.8k
Forks
135
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cdgriffith/Box

All issues in cdgriffith/Box

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.