Skip to content

Commit

Permalink
Fix issue 21.
Browse files Browse the repository at this point in the history
  • Loading branch information
theindigamer committed Nov 24, 2018
1 parent 5e81a9f commit dc6c469
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Help/Page/Help.hs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ plainP = do
spaces <- takeWhileP Nothing isSpace
ind <- getIndent
modify (set curPlainIndent (Just ind))
rest <- takeWhile1P' (/= '\n') <* optional newline
let takeMore = if T.null spaces then takeWhile1P else takeWhileP
rest <- takeMore Nothing (/= '\n') <* optional newline
pure $ Plain (T.snoc (spaces <> rest) '\n')

------------------------------------------------------------
Expand Down

0 comments on commit dc6c469

Please sign in to comment.