summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-04-19 11:26:51 -0400
committerJune McEnroe <june@causal.agency>2020-04-19 11:26:51 -0400
commiteec36a38f17013c6d56b9f2af9cc78d7fd202827 (patch)
tree70e6320e2461f9f2a4251cb007f37132f0f2e777
parentFactor out templateBuffer (diff)
downloadbubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.tar.gz
bubger-eec36a38f17013c6d56b9f2af9cc78d7fd202827.zip
Skip leading whitespace in message IDs
-rw-r--r--parse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.c b/parse.c
index 5c4eba0..808852a 100644
--- a/parse.c
+++ b/parse.c
@@ -47,6 +47,7 @@ static struct AddressList parseAddressList(struct List list) {
 }
 
 static char *parseID(char *id) {
+	while (isspace(id[0])) id++;
 	size_t len = strlen(id);
 	if (id[0] != '<' || !len || id[len - 1] != '>') {
 		errx(EX_PROTOCOL, "invalid message ID");
ct'>Render tag index in HTMLJune McEnroe 2021-01-12Add htagml -xJune McEnroe 2021-01-12Prevent matching the same tag twiceJune McEnroe 2021-01-12Process htagml file line by lineJune McEnroe This simplifies some things, adds support for line number tag definitions, and should enable combining htagml with other preprocessors in the future. 2021-01-12Split fields by tab onlyJune McEnroe Also don't fail hard on non-forward-search definitions. 2021-01-12List both Makefile and html.sh under README.7June McEnroe 2021-01-12Add htagml exampleJune McEnroe 2021-01-12Use mandoc and htagml for bin htmlJune McEnroe 2021-01-12Add htagmlJune McEnroe 2021-01-12Replace causal.agency with a simple mdoc pageJune McEnroe 2021-01-11Publish "Using vi"June McEnroe 2021-01-11Enable diff.colorMovedJune McEnroe 2021-01-10Set less search case-insensitiveJune McEnroe 2021-01-10Set EXINITJune McEnroe neovim is laggy as hell in my OpenBSD VM, so I switched to vi so I could type without getting frustrated. 2021-01-09Add c -t flag to print expression typeJune McEnroe Also add missing float case. 2021-01-05Update taglineJune McEnroe