Biblio: Check for == rather than /=.
This is more perspicuous.
This commit is contained in:
parent
3eef887dfa
commit
05f5766abe
1 changed files with 3 additions and 3 deletions
|
@ -44,12 +44,12 @@ processBiblio cslfile r p
|
|||
else do
|
||||
csl <- readCSLFile cslfile
|
||||
p' <- processWithM setHash p
|
||||
let (nts,grps) = if styleClass csl /= "note"
|
||||
then (,) [] $ queryWith getCitation p'
|
||||
else let cits = queryWith getCite p'
|
||||
let (nts,grps) = if styleClass csl == "note"
|
||||
then let cits = queryWith getCite p'
|
||||
ncits = map (queryWith getCite) $ queryWith getNote p'
|
||||
needNt = cits \\ concat ncits
|
||||
in (,) needNt $ getNoteCitations needNt p'
|
||||
else (,) [] $ queryWith getCitation p'
|
||||
result = citeproc csl r (setNearNote csl $ map (map toCslCite) grps)
|
||||
cits_map = M.fromList $ zip grps (citations result)
|
||||
biblioList = map (renderPandoc' csl) (bibliography result)
|
||||
|
|
Loading…
Add table
Reference in a new issue