From: Frantisek Hrbata Date: Thu, 3 Dec 2020 17:43:29 +0000 (+0100) Subject: git-mr-show: add vn format X-Git-Tag: v0.2~64 X-Git-Url: http://www.hrbata.com/gitweb/?a=commitdiff_plain;h=ba334b38d343579f2e41cdc33a484b3945f8354e;p=gimrr.git git-mr-show: add vn format All tag values should have newlines escaped. This format allows to diplay values with newline interpreted. Signed-off-by: Frantisek Hrbata --- diff --git a/git-mr-show b/git-mr-show index 7318354..f3ffc8b 100755 --- a/git-mr-show +++ b/git-mr-show @@ -90,6 +90,12 @@ class TagFormatter(string.Formatter): if values: value = sep.join(values) + elif fmt == "vn": + values = mrlib.get_tag_values(ctags, name, users) + if values: + value = sep.join(values) + value = value.replace("\\n", "\n") + elif fmt == "c": values = mrlib.get_tag_values(ctags, name, users) if values: