From d140564a73edeee6fd35896d24a00400512dd36c Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 14 Sep 2016 02:24:50 +0000 Subject: [PATCH] [docs] Fix formatting of   characters so that tables line up properly. Add padding around table cells so the borders of adjacent tables don't run into each other (now that they're perfectly aligned). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281436 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/DiagnosticsReference.rst | 6 ++++-- include/clang/Basic/DiagnosticDocs.td | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/DiagnosticsReference.rst b/docs/DiagnosticsReference.rst index ec559e333c..7294c36620 100644 --- a/docs/DiagnosticsReference.rst +++ b/docs/DiagnosticsReference.rst @@ -14,10 +14,11 @@ } table.docutils td { border: none; - padding: 0; + padding: 0 0 0 0.2em; vertical-align: middle; white-space: nowrap; width: 1px; + font-family: monospace; } table.docutils tr + tr { border-top: 0.2em solid #aaa; @@ -43,7 +44,8 @@ } -.. FIXME: Format this as .diagtext. rST appears to not support this. :( +.. FIXME: rST doesn't support formatting this, so we format all elements + as monospace font face instead. .. |nbsp| unicode:: 0xA0 :trim: diff --git a/include/clang/Basic/DiagnosticDocs.td b/include/clang/Basic/DiagnosticDocs.td index ac3f1ff640..0a3e1ce5f2 100644 --- a/include/clang/Basic/DiagnosticDocs.td +++ b/include/clang/Basic/DiagnosticDocs.td @@ -24,10 +24,11 @@ def GlobalDocumentation { } table.docutils td { border: none; - padding: 0; + padding: 0 0 0 0.2em; vertical-align: middle; white-space: nowrap; width: 1px; + font-family: monospace; } table.docutils tr + tr { border-top: 0.2em solid #aaa; @@ -53,7 +54,8 @@ def GlobalDocumentation { } -.. FIXME: Format this as .diagtext. rST appears to not support this. :( +.. FIXME: rST doesn't support formatting this, so we format all elements + as monospace font face instead. .. |nbsp| unicode:: 0xA0 :trim: -- 2.50.1