Skip to content

Commit d03de4d

Browse files
committed
Tweak table wrapping
Update table wrapping CSS to prevent odd paragraph wrapping. Fixes gh-41
1 parent b951c60 commit d03de4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/css/asciidoctor.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,11 +344,16 @@
344344

345345
.doc .tableblock pre,
346346
.doc .tableblock code,
347-
.doc .tableblock p,
348347
.doc .listingblock.wrap pre {
349348
white-space: pre-wrap;
350349
}
351350

351+
.doc td:nth-child(1) .tableblock pre,
352+
.doc td:nth-child(1) .tableblock code,
353+
.doc td:nth-child(1) .listingblock.wrap pre {
354+
white-space: nowrap;
355+
}
356+
352357
/* Admonition blocks */
353358

354359
.doc .admonitionblock {

0 commit comments

Comments
 (0)