From 8455c677b4d1773d31ec7650c09774c85a78458d Mon Sep 17 00:00:00 2001 From: Fabian Kirchner Date: Fri, 13 Oct 2023 19:38:30 +0200 Subject: title cannot span multiple lines --- app/Issue/Text.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app') diff --git a/app/Issue/Text.hs b/app/Issue/Text.hs index 2637598..c8b97d7 100644 --- a/app/Issue/Text.hs +++ b/app/Issue/Text.hs @@ -16,7 +16,7 @@ extractText fileType rawText = (title, description) where text = stripComments fileType $ stripLines rawText stripLines = T.intercalate "\n" . map T.strip . T.lines - (title, description') = second T.stripStart $ T.breakOn "\n\n" text + (title, description') = second T.stripStart $ T.breakOn "\n" text description | T.null description' = Nothing | otherwise = Just description' -- cgit v1.2.3