Remove a useless new line from `dig +yaml` output
Description
Currently the output of dig +yaml <domain>
has an extra new line after the -
for the list item, which isn't needed for it to be valid yaml. This also makes the output longer than needed. See example output:
$ dig +yaml google.com
- <---- This newline doesn't need to be here
type: MESSAGE
message:
type: RECURSIVE_RESPONSE
query_time: !!timestamp 2024-06-16T19:49:06.416Z
response_time: !!timestamp 2024-06-16T19:49:06.416Z
message_size: 55b
socket_family: INET
socket_protocol: UDP
response_address: "1.1.1.1"
response_port: 53
query_address: "0.0.0.0"
query_port: 0
response_message_data:
opcode: QUERY
status: NOERROR
id: 60264
flags: qr rd ra
QUESTION: 1
ANSWER: 1
AUTHORITY: 0
ADDITIONAL: 1
OPT_PSEUDOSECTION:
EDNS:
version: 0
flags:
udp: 1232
QUESTION_SECTION:
- google.com. IN A
ANSWER_SECTION:
- google.com. 274 IN A 142.251.142.206
Request
Remove that new line. I already have a fix ready, if I could have permission to create a fork I can make a merge request.