Markdown writer: avoid extra space before citation suffix...
if it already starts with a space.
This commit is contained in:
parent
d393f2f158
commit
be0e3f9794
1 changed files with 4 additions and 2 deletions
|
@ -531,8 +531,10 @@ inlineToMarkdown opts (Cite (c:cs) lst)
|
|||
sdoc <- inlineListToMarkdown opts sinlines
|
||||
let k' = literal (modekey m <> "@" <> maybeInBraces k)
|
||||
r = case sinlines of
|
||||
Str (T.uncons -> Just (y,_)):_ | y `elem` (",;]@" :: String) -> k' <> sdoc
|
||||
_ -> k' <+> sdoc
|
||||
Str (T.uncons -> Just (y,_)):_
|
||||
| y `elem` (",;]@" :: String) -> k' <> sdoc
|
||||
Space:_ -> k' <> sdoc
|
||||
_ -> k' <+> sdoc
|
||||
return $ pdoc <+> r
|
||||
modekey SuppressAuthor = "-"
|
||||
modekey _ = ""
|
||||
|
|
Loading…
Reference in a new issue