Author: rsmith
Date: Tue Sep 13 21:24:50 2016
New Revision: 281436

URL: http://llvm.org/viewvc/llvm-project?rev=281436&view=rev
Log:
[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).

Modified:
    cfe/trunk/docs/DiagnosticsReference.rst
    cfe/trunk/include/clang/Basic/DiagnosticDocs.td

Modified: cfe/trunk/docs/DiagnosticsReference.rst
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/DiagnosticsReference.rst?rev=281436&r1=281435&r2=281436&view=diff
==============================================================================
--- cfe/trunk/docs/DiagnosticsReference.rst (original)
+++ cfe/trunk/docs/DiagnosticsReference.rst Tue Sep 13 21:24:50 2016
@@ -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 @@
     }
     </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:
 

Modified: cfe/trunk/include/clang/Basic/DiagnosticDocs.td
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Basic/DiagnosticDocs.td?rev=281436&r1=281435&r2=281436&view=diff
==============================================================================
--- cfe/trunk/include/clang/Basic/DiagnosticDocs.td (original)
+++ cfe/trunk/include/clang/Basic/DiagnosticDocs.td Tue Sep 13 21:24:50 2016
@@ -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:
 


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to