Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Builder.text: Fixed logic error.

  • Loading branch information...
commit 499f40fbb8f260e8a5dcaf349504322d750b8601 1 parent 315e92b
@jgm authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Text/Pandoc/Builder.hs
View
2  Text/Pandoc/Builder.hs
@@ -181,7 +181,7 @@ text :: String -> Inlines
text = fromList . map conv . breakBySpaces
where breakBySpaces = groupBy sameCategory
sameCategory x y = (is_space x && is_space y) ||
- (not $ is_space x && is_space y)
+ (not $ is_space x || is_space y)
conv xs | all is_space xs = Space
conv xs = Str xs
is_space ' ' = True
Please sign in to comment.
Something went wrong with that request. Please try again.