the repository which powers this website
Remove leading newline characters from tag messages
Fixes a regression introduced in commit 936295c (Simplify commit and tag parsing, 2015-03-03). Signed-off-by: Lukas Fleischer <[email protected]>
Lukas Fleischer 2015-03-05
parent ecd6b72 · commit 4d8ed33
-rw-r--r--parsing.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/parsing.c b/parsing.c
index 0db181bd..dcaf2b3c 100644
--- a/parsing.c
+++ b/parsing.c
@@ -216,6 +216,9 @@ struct taginfo *cgit_parse_tag(struct tag *tag)
}
}
+ while (p && *p == '\n')
+ p++;
+
if (p && *p)
ret->msg = xstrdup(p);