mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-26 10:16:32 +00:00
LaTeX writer: minor tweak to hypertarget (semantically irrelevant).
This commit is contained in:
@@ -841,7 +841,9 @@ hypertarget addnewline ident x = do
|
||||
ref <- text `fmap` toLabel ident
|
||||
return $ text "\\hypertarget"
|
||||
<> braces ref
|
||||
<> braces ((if addnewline then ("%" <> cr) else empty) <> x)
|
||||
<> braces ((if addnewline && not (isEmpty x)
|
||||
then ("%" <> cr)
|
||||
else empty) <> x)
|
||||
|
||||
labelFor :: PandocMonad m => String -> LW m Doc
|
||||
labelFor "" = return empty
|
||||
|
||||
Reference in New Issue
Block a user