Commit 595f60fd authored by Ben Gamari's avatar Ben Gamari 🐢

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.
parent cfea7450
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment