From: Alan T. DeKok Date: Thu, 13 Jan 2022 15:45:57 +0000 (-0500) Subject: add more whitespace for sanity X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e9650c247aca11b3e36267babc5936742b9564;p=thirdparty%2Ffreeradius-server.git add more whitespace for sanity value boxes shouldn't be printed all smashed together --- diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 844c833f1b2..b2834989fc9 100644 --- a/src/lib/unlang/xlat_tokenize.c +++ b/src/lib/unlang/xlat_tokenize.c @@ -1295,6 +1295,14 @@ ssize_t xlat_print(fr_sbuff_t *out, xlat_exp_t const *head, fr_sbuff_escape_rule } FR_SBUFF_IN_CHAR_RETURN(out, close); next: + if (node->next) { + if ((node->next->type == XLAT_BOX) && (node->next->data.type != FR_TYPE_STRING)) { + FR_SBUFF_IN_CHAR_RETURN(out, ' ',); + } else if ((node->type == XLAT_BOX) && (node->data.type != FR_TYPE_STRING)) { + FR_SBUFF_IN_CHAR_RETURN(out, ' ',); + } + } + node = node->next; }