From a42bbf190c359fada7822d05c3703374147440aa Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 14 Feb 2019 03:13:34 +0100 Subject: [PATCH] libtextstyle: Fix hyperlinks to table of contents in HTML doc. Reported by Akim Demaille . * libtextstyle/doc/Makefile.am (libunistring_toc.html): Replace references to libtextstyle.html with references to libtextstyle_toc.html. --- libtextstyle/doc/Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libtextstyle/doc/Makefile.am b/libtextstyle/doc/Makefile.am index 21364ee3c..b228ee115 100644 --- a/libtextstyle/doc/Makefile.am +++ b/libtextstyle/doc/Makefile.am @@ -142,7 +142,9 @@ libtextstyle_toc.html: libtextstyle.texi version.texi $(libtextstyle_TEXINFOS) $(TEXI2HTML) $(TEXINCLUDES) -no-sec-nav -no-menu -toc-links -number -split_chapter `if test -f libtextstyle.texi; then echo libtextstyle.texi; else echo $(srcdir)/libtextstyle.texi; fi` ;; \ esac \ && { mv libtextstyle/libtextstyle.html libtextstyle_toc.html; \ - mv libtextstyle/*.html .; \ + for file in libtextstyle/*.html; do \ + sed -e 's/libtextstyle\.html/libtextstyle.html/g' < $$file > `basename $$file` && rm -f $$file; \ + done; \ rmdir libtextstyle; \ } -- 2.47.2