From d3feabfc8660bf688bd3ec79cea31b7de46d795a Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Wed, 27 Mar 2013 18:28:25 -0400 Subject: [PATCH] Remove the "arrow" from the XHTML TOC. I think I put it there near the beginning, when the titles themselves were not being used as links. Now they are, so it is not needed. --- lib/layouts/stdinsets.inc | 6 ------ src/insets/InsetTOC.cpp | 11 +---------- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/layouts/stdinsets.inc b/lib/layouts/stdinsets.inc index 5938cc6ee3..c247f13b77 100644 --- a/lib/layouts/stdinsets.inc +++ b/lib/layouts/stdinsets.inc @@ -213,12 +213,6 @@ InsetLayout TOC color: black; } a.tocentry:visited { color: black; } - a.tocarrow { - font-weight: bold; - text-decoration: none; - color: #909090; - } - a.tocarrow:visited { color: #C0C0C0; } EndHTMLStyle End diff --git a/src/insets/InsetTOC.cpp b/src/insets/InsetTOC.cpp index 6e0a3c0e64..331153b94c 100644 --- a/src/insets/InsetTOC.cpp +++ b/src/insets/InsetTOC.cpp @@ -144,16 +144,7 @@ void InsetTOC::makeTOCEntry(XHTMLStream & xs, Font const dummy; par.simpleLyXHTMLOnePar(buffer(), xs, ours, dummy); - xs << html::EndTag("a") << " "; - - // Now a link to the paragraph - string const parattr = "href='#" + par.magicLabel() + "' class='tocarrow'"; - xs << html::StartTag("a", parattr); - // FIXME XHTML - // There ought to be a simple way to customize this. - // Maybe if we had an InsetLayout for TOC... - xs << XHTMLStream::ESCAPE_NONE << ">"; - xs << html::EndTag("a"); + xs << html::EndTag("a") << html::CR(); }