[RFC,selinux-notebook,02/18] css: identify table layout hacks
diff mbox series

Message ID 159650480947.8961.9574180519610718746.stgit@sifl
State Accepted
Headers show
Series
  • markdown conversions and cleanups
Related show

Commit Message

Paul Moore Aug. 4, 2020, 1:33 a.m. UTC
Better identify, and tweak, some of the table layout hacks so that
we know to revisit them later once we have fully converted to
markdown.

Signed-off-by: Paul Moore <paul@paul-moore.com>
---
 src/styles_html.css |    1 -
 src/styles_pdf.css  |    6 +++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/src/styles_html.css b/src/styles_html.css
index ea3f7ee..887051c 100644
--- a/src/styles_html.css
+++ b/src/styles_html.css
@@ -21,7 +21,6 @@  table {
 }
 table tr, th, td {
 	border: 1px solid black;
-	word-wrap: break-word;
 }
 
 img {
diff --git a/src/styles_pdf.css b/src/styles_pdf.css
index 48da310..5fa9d02 100644
--- a/src/styles_pdf.css
+++ b/src/styles_pdf.css
@@ -62,12 +62,16 @@  table {
 	margin-left: auto;
 	margin-right: auto;
 	width: 95%;
-	table-layout: fixed;
 	/* combine table borders when they are adjacent */
 	border-collapse: collapse;
+	/* TODO: once we finish the HTML->Markdown conversion we should
+	 *       revaluate the 'table-layout: fixed' hack below */
+	table-layout: fixed;
 }
 table tr, th, td {
 	border: 1px solid black;
+	/* TODO: once we finish the HTML->Markdown conversion we should
+	 *       revaluate the 'word-wrap: break-word' hack below */
 	word-wrap: break-word;
 }