diff options
Diffstat (limited to 'src/textual.cc')
-rw-r--r-- | src/textual.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc index 5a47b75a..f2996a03 100644 --- a/src/textual.cc +++ b/src/textual.cc @@ -863,6 +863,9 @@ post_t * instance_t::parse_post(char * line, char * next = next_element(p, true); char * e = p + std::strlen(p); + while (e > p && std::isspace(*(e - 1))) + e--; + if ((*p == '[' && *(e - 1) == ']') || (*p == '(' && *(e - 1) == ')')) { post->add_flags(POST_VIRTUAL); DEBUG("textual.parse", "line " << linenum << ": " |