summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2017-03-09 09:01:51 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2017-03-09 16:11:38 +0000
commitf9913671b40a2107bfbcc3b7fcf5823c5771eb42 (patch)
tree85dff76f6bb4a9f5be39e0e89417b504e6b99a2c /src
parentfc3f96af4e6c7f4ffe6612b705849d7860ab3cd0 (diff)
Debug: Use UTF-8 linedrawing, for indent partial-markers
Diffstat (limited to 'src')
-rw-r--r--src/src/debug.c10
-rw-r--r--src/src/macros.h1
2 files changed, 7 insertions, 4 deletions
diff --git a/src/src/debug.c b/src/src/debug.c
index ee284d0be..35571547f 100644
--- a/src/src/debug.c
+++ b/src/src/debug.c
@@ -211,11 +211,13 @@ if (indent > 0)
int i;
for (i = indent >> 2; i > 0; i--)
{
- Ustrcpy(debug_ptr, " .");
- debug_ptr += 4;
+ Ustrcpy(debug_ptr, " " UTF8_VERT_2DASH);
+ debug_ptr += 6; /* 3 spaces + 3 UTF-8 octets */
+ debug_prefix_length += 6;
}
- Ustrncpy(debug_ptr, " ", indent & 3);
- debug_ptr += indent & 3;
+ Ustrncpy(debug_ptr, " ", indent &= 3);
+ debug_ptr += indent;
+ debug_prefix_length += indent;
}
/* Use the checked formatting routine to ensure that the buffer
diff --git a/src/src/macros.h b/src/src/macros.h
index 4efeee928..004d6dfd7 100644
--- a/src/src/macros.h
+++ b/src/src/macros.h
@@ -980,6 +980,7 @@ enum { FILTER_UNSET, FILTER_FORWARD, FILTER_EXIM, FILTER_SIEVE };
#define UTF8_HORIZ "\xE2\x94\x80"
#define UTF8_VERT_RIGHT "\xE2\x94\x9C"
#define UTF8_UP_RIGHT "\xE2\x94\x94"
+#define UTF8_VERT_2DASH "\xE2\x95\x8E"