yml escape multi-line text writing (|)

1. Escaping single and double quotes, "xxx \n" and'xxx \n'

C language only has double-quoted strings, so how to interpret "xxx \n" in c language, yml will interpret it.

'xxx \n' # single quote = output as it is

 

Attachment: \ is called an escape character, and it is demoted (escaped) to the character'\'. In this process, there are no double quotes, but single quotes. This should be what the Internet says will it be escaped.

 

 

Two, multi-line text

| Used to set multi-line text

key: |The
  first line and the
  second line

| A newline at the end

|+ Two newlines at the end

|- zero newlines at the end

Guess you like

Origin blog.csdn.net/u013595395/article/details/111995476