WiIIiam278/Velocitab

Pipe-defined multiline yaml string blocks used in headers/footers erroneously append a line break

SeemWind opened this issue · 3 comments

image

the footers in config is like this

footers:
  - |
    \n&7For Velocity proxy servers:
    &#1bd96a-#6cffa9&https://modrinth.com/plugin/velocitab
    &#1bd96a-#6cffa9&https://william278.net/project/veloictab'

there shouldn't be a blank line in the last

I suspect this is actually a further-upstream issue, either with Exll's configlib - or possibly further up than that? Need to investigate; it's certainly reproducible (and strange)

From Exll, who kindly took a look at the spec for us - If you don't want the final linebreak, you have to use |- instead of |, i.e.:

foo: |-
     bar 1
     bar 2
     bar 3

See: https://yaml.org/spec/1.2.2/#example-chomping-final-line-break

Accordingly this issue has been changed to a docs issue - we should make this clear in our docs to eliminate potential confusion.

Closed in #197