Muse writer: use "" instead of [] for empty String
commit97f6833ee58667defbf4f203ebd69f5062232563
authorAlexander Krotov <ilabdsf@gmail.com>
dateTue 11 Sep 2018, 11:49 (8 years ago)
parent165a610
src/Text/Pandoc/Writers/Muse.hs+1−1
@@ -435,7 +435,7 @@ isHorizontalRule s = length s >= 4 && all (== '-') s
435435
436436stringStartsWithSpace :: String -> Bool
437437stringStartsWithSpace (x:_) = isSpace x
438−stringStartsWithSpace [] = False
438+stringStartsWithSpace "" = False
439439
440440fixOrEscape :: Bool -> Inline -> Bool
441441fixOrEscape sp (Str "-") = sp