]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
add more whitespace for sanity
authorAlan T. DeKok <aland@freeradius.org>
Thu, 13 Jan 2022 15:45:57 +0000 (10:45 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 14 Jan 2022 22:05:35 +0000 (17:05 -0500)
value boxes shouldn't be printed all smashed together

src/lib/unlang/xlat_tokenize.c

index 844c833f1b29c09cc1a65ae96e166f705070bdf2..b2834989fc93c5f396b8b980b1bcf18e71c19a76 100644 (file)
@@ -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;
        }