mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-27 01:45:56 +00:00
Biblio: Check for == rather than /=.
This is more perspicuous.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user