cdgriffith / cdgriffith/Box

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

Open
#307 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
135
PR merge metrics
No merged PRs in 30d

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.

Contributor guide

Open the contributing guide

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.