From fe4311d5a1482ab2e0edfe78c556bf28fc50adf7 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Wed, 1 Mar 2017 21:38:28 +0100
Subject: LaTeX writer: always add hypertarget when there's a non-empty
 identifier.

Previously the hypertargets were only added when there was actually
a link to that identifier.  Closes #2719.
---
 test/writers-lang-and-dir.latex | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'test/writers-lang-and-dir.latex')

diff --git a/test/writers-lang-and-dir.latex b/test/writers-lang-and-dir.latex
index 1c705399b..cba3dd96b 100644
--- a/test/writers-lang-and-dir.latex
+++ b/test/writers-lang-and-dir.latex
@@ -84,7 +84,8 @@
 
 \begin{document}
 
-\section{Empty Divs and Spans}\label{empty-divs-and-spans}
+\hypertarget{empty-divs-and-spans}{%
+\section{Empty Divs and Spans}\label{empty-divs-and-spans}}
 
 Some text and
 
@@ -94,7 +95,8 @@ and more text.
 
 Next paragraph with a {span} and a word-thatincludesa{span}right?
 
-\section{Directionality}\label{directionality}
+\hypertarget{directionality}{%
+\section{Directionality}\label{directionality}}
 
 Some text and
 
@@ -111,7 +113,8 @@ and a ltr div. with a \RL{rtl span}.
 Next paragraph with a \RL{rtl span} and a
 word-that-includesa\LR{ltrspan}right?
 
-\section{Languages}\label{languages}
+\hypertarget{languages}{%
+\section{Languages}\label{languages}}
 
 Some text and
 
@@ -128,7 +131,8 @@ word-that-includesa\textgerman[variant=swiss]{Swiss German span}right?
 
 Some \textspanish{Spanish text}.
 
-\section{Combined}\label{combined}
+\hypertarget{combined}{%
+\section{Combined}\label{combined}}
 
 Some text and
 
-- 
cgit v1.2.3

