From 2f535ceda3ab02605f5b19dafd8976240b1b5d83 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 29 Mar 2012 11:09:48 -0400 Subject: Avoid repeated id in section and header in HTML slides. Previously pandoc would use the same id attribute for the div or section and the header inside it; now the id is omitted from the header if the div or section has it. --- src/Text/Pandoc/Writers/HTML.hs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/HTML.hs b/src/Text/Pandoc/Writers/HTML.hs index b1fd9c56f..f9bbe8796 100644 --- a/src/Text/Pandoc/Writers/HTML.hs +++ b/src/Text/Pandoc/Writers/HTML.hs @@ -264,9 +264,8 @@ elementToHtml slideLevel opts (Sec level num id' title' elements) = do -- title slides have no content of their own then filter isSec elements else elements - let header'' = if (writerStrictMarkdown opts || - writerSectionDivs opts || - writerSlideVariant opts == S5Slides) + let header'' = if (writerStrictMarkdown opts || writerSectionDivs opts || + writerSlideVariant opts == S5Slides || slide) then header' else header' ! prefixedId opts id' let inNl x = mconcat $ nl opts : intersperse (nl opts) x ++ [nl opts] -- cgit v1.2.3