summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-05-14 16:35:33 -0400
committerTed Trask <ttrask01@yahoo.com>2015-05-14 16:35:33 -0400
commit71541e5c0154ad20af6a5b2a874fdf27dc62d11a (patch)
treeb27f38a775804415bc1ce9907aaa194bffa4be52 /lib
parentf13ef5a946f98b128eb32010586253c771dfb239 (diff)
downloadacf-core-71541e5c0154ad20af6a5b2a874fdf27dc62d11a.tar.bz2
acf-core-71541e5c0154ad20af6a5b2a874fdf27dc62d11a.tar.xz
Modify htmlviewfunctions to add id to div at start of section
Diffstat (limited to 'lib')
-rw-r--r--lib/htmlviewfunctions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua
index 1c80351..a43bead 100644
--- a/lib/htmlviewfunctions.lua
+++ b/lib/htmlviewfunctions.lua
@@ -26,7 +26,7 @@ function mymodule.displaysectionstart(myitem, page_info, header_level)
page_info = page_info or {}
header_level = header_level or page_info.header_level or 1
if 0 < header_level then
- print('<div class="section'..tostring(header_level)..'">')
+ print('<div class="section'..tostring(header_level)..'" id="section_'..html.html_escape(myitem.name)..'">')
print('<h'..tostring(header_level)..'>'..html.html_escape(myitem.label)..'</h'..tostring(header_level)..'>')
end
return header_level