You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my real world example I had a File which just looked similar to YAML in that it had a comment at the top.
So in order to make it a proper YAML, I made the comment a multiline string.
Unfortunately sorting messed the string and the file up.
Here is a working example.
Original YAML:
'!': | ##################################### ## ## Zeta: ## - C ## - A ## - B ## Beta: ## - B ## - C ## - A ## Alpha: ## - A ## - B ## - C ## #####################################Zeta:
- C
- A
- BBeta:
- B
- C
- AAlpha:
- A
- B
- C
After Sorting
---
'!': | ##################################### ##Alpha:
- A
- B
- CBeta:
- B
- C
- AZeta:
- C
- A
- B #### - A## Alpha:## - C## - A## - B## Beta:## - C## - A## - B## Zeta:## - C#####################################
The text was updated successfully, but these errors were encountered:
In my real world example I had a File which just looked similar to YAML in that it had a comment at the top.
So in order to make it a proper YAML, I made the comment a multiline string.
Unfortunately sorting messed the string and the file up.
Here is a working example.
Original YAML:
After Sorting
The text was updated successfully, but these errors were encountered: