[commit: ghc] master: mkUserGuide: fix option wrapping in a table (a824972)

git at git.haskell.org git at git.haskell.org
Wed Feb 10 14:21:12 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/a8249726585a04b46400c9b074a85097c6488bb1/ghc

>---------------------------------------------------------------

commit a8249726585a04b46400c9b074a85097c6488bb1
Author: Sergei Trofimovich <siarheit at google.com>
Date:   Wed Feb 10 14:12:03 2016 +0000

    mkUserGuide: fix option wrapping in a table
    
    Noticed as a sphinx warning:
        docs/users_guide/flags-warnings.gen.rst:97:
            WARNING: Inline interpreted text or phrase
            reference start-string without end-string.
    
    Which pointed to broken table.
    
    Before the patch table looked like:
    
        | :ghc-flag:`-Wno-unticked-promoted-constructors |
        | `                                              |
    
    After the patch long link is on a single line:
    
        | :ghc-flag:`-Wno-unticked-promoted-constructors`    |
    
    Signed-off-by: Sergei Trofimovich <siarheit at google.com>


>---------------------------------------------------------------

a8249726585a04b46400c9b074a85097c6488bb1
 utils/mkUserGuidePart/Main.hs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/mkUserGuidePart/Main.hs b/utils/mkUserGuidePart/Main.hs
index 41e8e40..57edc94 100644
--- a/utils/mkUserGuidePart/Main.hs
+++ b/utils/mkUserGuidePart/Main.hs
@@ -48,7 +48,7 @@ whatGlasgowExtsDoes = unlines
 -- the users guide.
 flagsTable :: [Flag] -> ReST
 flagsTable theFlags =
-    table [50, 100, 30, 50]
+    table [50, 100, 30, 55]
           ["Flag", "Description", "Static/Dynamic", "Reverse"]
           (map flagRow theFlags)
   where



More information about the ghc-commits mailing list