Improve deNote.
This commit is contained in:
parent
2125aea026
commit
01f2d81168
1 changed files with 5 additions and 4 deletions
|
@ -527,11 +527,12 @@ capitalizeNoteCitation x = x
|
|||
deNote :: Inline -> Inline
|
||||
deNote (Note bs) = Note $ walk go bs
|
||||
where
|
||||
go (Note bs')
|
||||
= Span ("",[],[]) (Space : Str "(" :
|
||||
(removeFinalPeriod
|
||||
(blocksToInlines bs')) ++ [Str ")"])
|
||||
go (Cite cs ils) = Cite cs (concatMap removeNote ils)
|
||||
go x = x
|
||||
removeNote (Note bs')
|
||||
= Space : Str "(" : (removeFinalPeriod
|
||||
(blocksToInlines bs')) ++ [Str ")"]
|
||||
removeNote x = [x]
|
||||
deNote x = x
|
||||
|
||||
-- Note: we can't use dropTextWhileEnd indiscriminately,
|
||||
|
|
Loading…
Reference in a new issue