Skip to content

Fix/literal output#1424

Open
SGSSGene wants to merge 2 commits intojbeder:masterfrom
SGSSGene:fix/literal_output
Open

Fix/literal output#1424
SGSSGene wants to merge 2 commits intojbeder:masterfrom
SGSSGene:fix/literal_output

Conversation

@SGSSGene
Copy link
Collaborator

fixes #1238

This fixes the unit tests for expecting '|-' in cases where a string literal does not end on a new line. (Unit tests now fail)
It adds a unit test which also tests for '|+' (This tests now also fails)

Finally, added the missing functionality to make the unit tests pass again.

The unit test only tested for the '|' literal indicator.
But in some cases it should have been '|-'. If a string does not end
with an '\n' it has to use '|-' to indicate that the trailing new line
is not part of the string.

Additionally, I also added a explicit test for '|+'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

YAML::Literal when new line at the end, shoud be |+ and not |

1 participant