projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Error message when you make if without retrieving git modules yet
[open-adventure.git]
/
misc.c
diff --git
a/misc.c
b/misc.c
index 59c33bdf847819e8562ca040cb9866ff61196c7f..cd1b5bf1f94d487c7996b7fb0d90b29b7c2ee050 100644
(file)
--- a/
misc.c
+++ b/
misc.c
@@
-243,6
+243,11
@@
void vspeak(const char* msg, va_list ap)
}
*renderp = 0;
+ // Deal with messages that are in YAML block format and therefore
+ // have their own trailing \n
+ if (renderp > rendered && renderp[-1] == '\n')
+ *--renderp = '\0';
+
// Print the message.
printf("%s\n", rendered);