[commit: ghc] master: Fix ghc_packages (595f60f)

git at git.haskell.org git at git.haskell.org
Mon Dec 4 21:40:00 UTC 2017


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

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

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

commit 595f60fd55cc0305883c8a0b382a4b9718a0e0d8
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Mon Dec 4 16:15:52 2017 -0500

    Fix ghc_packages
    
    The LaTeX produced by this previously failed to compile. Changing the first cell
    of the row from an inline to a paragraph fixes this. Then I noticed that the
    table overflowed the page. This is fixed by applying the longtable class.


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

595f60fd55cc0305883c8a0b382a4b9718a0e0d8
 docs/users_guide/ghc_packages.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/users_guide/ghc_packages.py b/docs/users_guide/ghc_packages.py
index c91a7f2..d4a688b 100644
--- a/docs/users_guide/ghc_packages.py
+++ b/docs/users_guide/ghc_packages.py
@@ -49,12 +49,13 @@ class PackageListDirective(Directive):
 
         for (pkg_path, reason) in sorted(packages):
             (pkg_name, pkg_version) = read_cabal_file(pkg_path)
-            cells = [ nodes.inline(text=pkg_name),
+            cells = [ nodes.paragraph(text=pkg_name),
                       nodes.inline(text=pkg_version),
                       reason ]
             package_list.append(cells)
 
         table = build_table_from_list(package_list, [20, 20, 40])
+        table['classes'].append('longtable')
         return [table]
 
 ### Initialization



More information about the ghc-commits mailing list