]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove extra newline from +yaml output
authorYedaya Katsman <yedaya.ka@gmail.com>
Sun, 16 Jun 2024 20:09:53 +0000 (23:09 +0300)
committerMark Andrews <marka@isc.org>
Mon, 5 Aug 2024 02:43:06 +0000 (02:43 +0000)
The newlines weren't needed for the yaml syntax, and took up space.

bin/dig/dig.c
bin/tools/mdig.c

index c98fa882775d5f8a99a824c74786da9363802f81..61fcd61424ca2b7ad2f52e5cbc933321c4052c06 100644 (file)
@@ -748,8 +748,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) {
@@ -3306,8 +3305,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.
index 0270edb31b5a8eaf9d24f8e9b13580abafb4c533..5dadd55c118d36e073d1fe8388477910964619b2 100644 (file)
@@ -297,8 +297,7 @@ recvresponse(void *arg) {
                char *hash;
                int pf;
 
-               printf("-\n");
-               printf("  type: MESSAGE\n");
+               printf("- type: MESSAGE\n");
                printf("  message:\n");
 
                if (((response->flags & DNS_MESSAGEFLAG_RD) != 0) &&