From 56adb721f244d26f1f416b57634a00601f7eddf0 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 14 Sep 2026 11:03:21 -0400 Subject: update stylesheet for current table markup The stylesheet gains the rules that reproduce what the attributes did, so a table in a search result renders as it did before. (Tables written into the search database lost their obsolete presentational attributes: no summary, width, border, cellpadding or align, a
around a , column widths in a , /, scope on the header cells, and alignment by class). (assisted by Claude-Code) --- src/sisudoc/spine_search.d | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'src') diff --git a/src/sisudoc/spine_search.d b/src/sisudoc/spine_search.d index bb78fa6..92500aa 100755 --- a/src/sisudoc/spine_search.d +++ b/src/sisudoc/spine_search.d @@ -1218,6 +1218,33 @@ void spine_cgi_search_function(Cgi cgi) { background-color : #555555; color : #DDDDDD; } + div.table { + margin : 1em 0; + overflow-x : auto; + } + table.table { + display : table; + width : 95%%; + margin : 0 auto; + border-collapse : collapse; + background-color : inherit; + } + table.table th, table.table td { + padding : 2px; + vertical-align : top; + } + table.table th { + font-weight : bold; + } + th.left, td.left { + text-align : left; + } + th.right, td.right { + text-align : right; + } + p.tablenote { + margin : 0.5em 0 0 0; + } pre { width : auto; display : block; -- cgit v1.2.3