mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 08:50:00 -04:00
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:
parent
bbdd888b8e
commit
87cb888a2d
2 changed files with 3 additions and 6 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue