From 4041423feda883d6c26ed41d093c5ce5ae9e37c4 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 12 Sep 2026 23:21:04 -0400 Subject: epub, html: correctly identify code block as block - wrapper set to
, with class unchanged, and the six stylesheets select div.code where they selected p.code. - invented element removed (assisted by Claude-Code) --- org/out_xmls.org | 9 +++++---- org/out_xmls_css.org | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) (limited to 'org') diff --git a/org/out_xmls.org b/org/out_xmls.org index 786d164..f40a8fe 100644 --- a/org/out_xmls.org +++ b/org/out_xmls.org @@ -1651,12 +1651,12 @@ string code(O,M)( _codelines = "
\n";
       foreach (k, _line; _block_lines) {
         if (k == 1) {
-          _codelines ~= format(q"┃    %s
+          _codelines ~= format(q"┃    %s
 ┃",
             _line,
           );
         } else {
-          _codelines ~= format(q"┃    %s
+          _codelines ~= format(q"┃    %s
 ┃",
             _line,
           );
@@ -1670,10 +1670,11 @@ string code(O,M)(
     }
     return _codelines;
   }
+  /+ ↓ a code block is wrapped in a 
, not a

+/ if (!(obj.metainfo.identifier.empty)) { o = format(q"┃

-

%s

+
%s
┃", obj.metainfo.identifier, (doc_matters.opt.action.ocn_off) ? "" : ((obj.metainfo.object_number.empty) ? "" : obj.metainfo.identifier), @@ -1683,7 +1684,7 @@ string code(O,M)( ); } else { o = format(q"┃
-

%s

+
%s
┃", obj.metainfo.is_a, codelines(_txt) diff --git a/org/out_xmls_css.org b/org/out_xmls_css.org index 095926a..3ae8e86 100644 --- a/org/out_xmls_css.org +++ b/org/out_xmls_css.org @@ -471,7 +471,7 @@ pre.codeline span.th { pre.codeline code { display : table-cell; } -p.code { +div.code { border-style : none; } #+END_SRC @@ -1411,7 +1411,7 @@ pre.codeline span.th { pre.codeline code { display : table-cell; } -p.code { +div.code { border-style : none; } #+END_SRC -- cgit v1.2.3