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/lhs-test.latex | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'test/lhs-test.latex')

diff --git a/test/lhs-test.latex b/test/lhs-test.latex
index bc02b6ae5..3ca8f97c8 100644
--- a/test/lhs-test.latex
+++ b/test/lhs-test.latex
@@ -91,7 +91,8 @@
 
 \begin{document}
 
-\section{lhs test}\label{lhs-test}
+\hypertarget{lhs-test}{%
+\section{lhs test}\label{lhs-test}}
 
 \texttt{unsplit} is an arrow that takes a pair of values and combines them to
 return a single value:
-- 
cgit v1.2.3

