]> granicus.if.org Git - clang/commitdiff
[docs] Fix formatting of   characters so that tables line up properly. Add
authorRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Sep 2016 02:24:50 +0000 (02:24 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Wed, 14 Sep 2016 02:24:50 +0000 (02:24 +0000)
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
include/clang/Basic/DiagnosticDocs.td

index ec559e333c138e369e898721e2c6bc1b7b97060c..7294c366202720c79d1f7f6849d3061137f61669 100644 (file)
     }
     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 @@
     }
     </style>
 
-.. FIXME: Format this as .diagtext. rST appears to not support this. :(
+.. FIXME: rST doesn't support formatting this, so we format all <td> elements
+          as monospace font face instead.
 .. |nbsp| unicode:: 0xA0
    :trim:
 
index ac3f1ff6402180b8ce4201ac182175544c427b25..0a3e1ce5f2f2acc24fb1a894da1aa5e2e6131549 100644 (file)
@@ -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 {
     }
     </style>
 
-.. FIXME: Format this as .diagtext. rST appears to not support this. :(
+.. FIXME: rST doesn't support formatting this, so we format all <td> elements
+          as monospace font face instead.
 .. |nbsp| unicode:: 0xA0
    :trim: