summaryrefslogtreecommitdiff
path: root/src/post.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/post.h')
-rw-r--r--src/post.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/post.h b/src/post.h
index e1535a46..7d5abcd8 100644
--- a/src/post.h
+++ b/src/post.h
@@ -99,6 +99,16 @@ public:
TRACE_DTOR(post_t);
}
+ virtual string description() {
+ if (pos) {
+ std::ostringstream buf;
+ buf << _("posting at line %1") << pos->beg_line;
+ return buf.str();
+ } else {
+ return string(_("generated posting"));
+ }
+ }
+
virtual bool has_tag(const string& tag,
bool inherit = true) const;
virtual bool has_tag(const mask_t& tag_mask,