diff options
author | Zach LeBar <zach@zachlebar.com> | 1980-02-12 06:06:50 +0000 |
---|---|---|
committer | Zach LeBar <zach@zachlebar.com> | 1980-02-12 06:06:50 +0000 |
commit | 29f88d18703ba3136d1b0b4739a302b64305f3d4 (patch) | |
tree | 7640a9a017c94797fa7a524542a1992a25c213c4 /lib | |
parent | 2f26b2eb5374548c3100519c19790398a356c424 (diff) | |
download | acf-core-29f88d18703ba3136d1b0b4739a302b64305f3d4.tar.bz2 acf-core-29f88d18703ba3136d1b0b4739a302b64305f3d4.tar.xz |
Cleaned up HTML in 'status-html.lsp' and 'displayitem()'.
Began removing the use of <dl>, <dd>, and <dt> tags for more semantic choices.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/htmlviewfunctions.lua | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/htmlviewfunctions.lua b/lib/htmlviewfunctions.lua index 3db6618..4e8d4b8 100644 --- a/lib/htmlviewfunctions.lua +++ b/lib/htmlviewfunctions.lua @@ -53,17 +53,17 @@ function displayitem(myitem, header_level, page_info) end end elseif myitem.type ~= "hidden" then - io.write("<DT") + io.write("<div class='item'") if myitem.errtxt then myitem.class = "error" io.write(' class="error"') end - io.write(">" .. html.html_escape(myitem.label) .. "</DT>\n") - io.write("<DD>") - io.write(string.gsub(html.html_escape(tostring(myitem.value)), "\n", "<BR>") .. "\n") - if myitem.descr then io.write("<P CLASS='descr'>" .. string.gsub(html.html_escape(myitem.descr), "\n", "<BR>") .. "</P>\n") end - if myitem.errtxt then io.write("<P CLASS='error'>" .. string.gsub(html.html_escape(myitem.errtxt), "\n", "<BR>") .. "</P>\n") end - io.write("</DD>\n") + io.write("><p class='left'>" .. html.html_escape(myitem.label) .. "</p>") + io.write("<div class='right'>") + io.write(string.gsub(html.html_escape(tostring(myitem.value)), "\n", "<br/>") .. "\n") + if myitem.descr then io.write("<p>" .. string.gsub(html.html_escape(myitem.descr), "\n", "<br/>") .. "</p>") end + if myitem.errtxt then io.write("<p class='error'>" .. string.gsub(html.html_escape(myitem.errtxt), "\n", "<br/>") .. "</p>") end + io.write("</div></div><!-- end .item -->") end end |