Remove extra newline from +yaml output

The newlines weren't needed for the yaml syntax, and took up space.

(cherry picked from commit 8986dda74a)
This commit is contained in:
Yedaya Katsman 2024-06-16 23:09:53 +03:00 committed by Mark Andrews
parent bbdd888b8e
commit 87cb888a2d
2 changed files with 3 additions and 6 deletions

View file

@ -717,8 +717,7 @@ printmessage(dig_query_t *query, const isc_buffer_t *msgbuf, dns_message_t *msg,
char *hash;
int pf;
printf("-\n");
printf(" type: MESSAGE\n");
printf("- type: MESSAGE\n");
printf(" message:\n");
if (isquery) {
@ -2965,8 +2964,7 @@ dig_error(const char *format, ...) {
va_list args;
if (yaml) {
printf("-\n");
printf(" type: DIG_ERROR\n");
printf("- type: DIG_ERROR\n");
/*
* Print an indent before a literal block quote.

View file

@ -297,8 +297,7 @@ recvresponse(isc_task_t *task, isc_event_t *event) {
char *hash;
int pf;
printf("-\n");
printf(" type: MESSAGE\n");
printf("- type: MESSAGE\n");
printf(" message:\n");
if (((response->flags & DNS_MESSAGEFLAG_RD) != 0) &&