Answer the question
In order to leave comments, you need to log in
How to correctly set and read list values from yaml to exclude "\n"?
Hello.
I have a config file
that describes the values like this
url_request:
STRING_TEMPLATE:
- str: |
>result-
- str: |
%Y-%m-%d
- str: |
1
- str: |
_22-00.txt
STRING_TEMPLATE=yaml_cfg["url_request"]["STRING_TEMPLATE"]
Answer the question
In order to leave comments, you need to log in
Use folded block
- str: >
>result-
- str: 1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question