diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-11 22:00:52 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2015-10-11 22:00:52 +0000 |
commit | 0874c59dbe39089dbe25a81d4eb19ebc63baa9ad (patch) | |
tree | 7c397734eb8ac430feb4cbeef4ca9bacf8b99d0f | |
parent | 1efc62347acbd0d7c4f4e3e264fc1678f793560f (diff) | |
download | mandoc-0874c59dbe39089dbe25a81d4eb19ebc63baa9ad.tar.gz |
Drop tags containing a blank character:
They don't work, they break other tags in weird ways, and even
if they could be made to work, they would be mostly useless.
Issue reported by naddy@, thanks.
-rw-r--r-- | tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -125,7 +125,7 @@ tag_put(const char *s, int prio, size_t line) size_t len; unsigned int slot; - if (tag_files.tfd <= 0) + if (tag_files.tfd <= 0 || strchr(s, ' ') != NULL) return; slot = ohash_qlookup(&tag_data, s); entry = ohash_find(&tag_data, slot); |