Slight improvement to last commit.
We now add a space only if there isn't already one. (Some styles add a space at the end of the left-margin div.)
This commit is contained in:
parent
810ea6fdf8
commit
a331c69b49
1 changed files with 4 additions and 1 deletions
|
@ -165,7 +165,10 @@ insertSpace ils =
|
|||
case Seq.lookup 0 rest of
|
||||
Just (Span ("",["csl-right-inline"],[]) _) ->
|
||||
Many $
|
||||
Span ("",["csl-left-margin"],[]) (xs ++ [Space]) Seq.<| rest
|
||||
Span ("",["csl-left-margin"],[]) (xs ++ case lastMay xs of
|
||||
Just Space -> []
|
||||
_ -> [Space])
|
||||
Seq.<| rest
|
||||
_ -> ils
|
||||
_ -> ils
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue