From e0e9650c247aca11b3e36267babc5936742b9564 Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Thu, 13 Jan 2022 10:45:57 -0500 Subject: [PATCH] add more whitespace for sanity value boxes shouldn't be printed all smashed together --- src/lib/unlang/xlat_tokenize.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/unlang/xlat_tokenize.c b/src/lib/unlang/xlat_tokenize.c index 844c833f1b..b2834989fc 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; } -- 2.47.2