LaTeX writer: minor tweak to hypertarget (semantically irrelevant).
This commit is contained in:
parent
a69cfa0178
commit
9e50319df3
1 changed files with 3 additions and 1 deletions
|
@ -841,7 +841,9 @@ hypertarget addnewline ident x = do
|
||||||
ref <- text `fmap` toLabel ident
|
ref <- text `fmap` toLabel ident
|
||||||
return $ text "\\hypertarget"
|
return $ text "\\hypertarget"
|
||||||
<> braces ref
|
<> 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 :: PandocMonad m => String -> LW m Doc
|
||||||
labelFor "" = return empty
|
labelFor "" = return empty
|
||||||
|
|
Loading…
Reference in a new issue