diff options
author | Fabian Kirchner <kirchner@posteo.de> | 2023-10-13 19:38:30 +0200 |
---|---|---|
committer | Fabian Kirchner <kirchner@posteo.de> | 2023-10-13 19:38:30 +0200 |
commit | 8455c677b4d1773d31ec7650c09774c85a78458d (patch) | |
tree | 7077001462df0cfc5c95d41239be1fc59acc9f37 /app/Issue/Text.hs | |
parent | e396bda3731edb3511781d94b1acae55ad2f68d5 (diff) |
title cannot span multiple lines
Diffstat (limited to 'app/Issue/Text.hs')
-rw-r--r-- | app/Issue/Text.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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' |