[GHC] #12155: Description of flags cut off

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: Type: task | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Keywords: flags | Operating System: Unknown/Multiple Architecture: | Type of failure: Documentation Unknown/Multiple | bug Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- The description of the flags from pages 104 to 110 are cut off in the PDF version of the User Guide. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: Type: task | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by thomie): * cc: bgamari (added) Comment: Thank you for the report. If you feel like trying to fix it yourself, the following two files are where those tables are generated: * utils/mkUserGuidePart/Main.hs * utils/mkUserGuidePart/Table.hs But it could also be a `pdflatex` problem. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: Type: task | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed; I had noticed this when looking through the PDF but really don't know what can be done about it. Unfortunately LaTeX doesn't always give you sane behavior without some tweaking. Any of the solutions described in [[http://stackoverflow.com/questions/790932/how-to-wrap-text-in-latex- tables#comment37681141_790944|here]] would be fine. I tried to change the entire users guide over to using the `tabulary` environment in place of `tabular` unfortunately it [[http://www.sphinx- doc.org/en/stable/config.html#latex-options|does not appear]] to be possible to override which environment LaTeX uses for tables and all of my attempts at hacking LaTeX into compliance via others means were unsuccessful. At this point I gave up. I suspect the right solution here is to simply add an option to Sphinx to override the environment used for tables. Feel free to bring this up with the Sphinx folks. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: Type: task | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by mikail): Would it be possible to switch to Pandoc. It's multi line table option would do the trick. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: (none) Type: task | Status: new Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): While Sphinx indeed has its issues, I'm afraid it's the best option I was able to find. While Pandoc is great for document conversion and simple typesetting, it's not so great for full documentation generation. I've been unable to find anything that handles things like indexing, table of contents generation, and cross-referencing better than Sphinx. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: (none) Type: task | Status: patch Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: #11654 | Differential Rev(s): D3839 Wiki Page: | -------------------------------------+------------------------------------- Changes (by patrickdoc): * status: new => patch * differential: => D3839 * related: => #11654 Comment: This was wrapped into the change from `mkUserGuidePart` to Sphinx based generation. Tables are manually sized in `flags.rst`, but even still it's not perfect. LaTeX can't break flags like `-XGeneralizedNewtypeDeriving`, which means that the sum of the minimum column widths is larger than the width of the line. I believe there aren't any egregious overlaps remaining, but some flags do spill out of their cells. Column widths are set in a percentage format that looks like `|\Y{20}|\Y{40}|\Y{10}|\Y{30}|`, which is reasonably amenable to change. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: (none) Type: task | Status: patch Priority: low | Milestone: Component: Documentation | Version: 8.0.1 Resolution: | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: #11654 | Differential Rev(s): Phab:D3839 Wiki Page: | -------------------------------------+------------------------------------- Changes (by patrickdoc): * differential: D3839 => Phab:D3839 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#12155: Description of flags cut off
-------------------------------------+-------------------------------------
Reporter: mikail | Owner: (none)
Type: task | Status: patch
Priority: low | Milestone:
Component: Documentation | Version: 8.0.1
Resolution: | Keywords: flags
Operating System: Unknown/Multiple | Architecture:
Type of failure: Documentation | Unknown/Multiple
bug | Test Case:
Blocked By: | Blocking:
Related Tickets: #11654 | Differential Rev(s): Phab:D3839
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari

#12155: Description of flags cut off -------------------------------------+------------------------------------- Reporter: mikail | Owner: (none) Type: task | Status: closed Priority: low | Milestone: 8.4.1 Component: Documentation | Version: 8.0.1 Resolution: fixed | Keywords: flags Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: #11654 | Differential Rev(s): Phab:D3839 Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: patch => closed * resolution: => fixed * milestone: => 8.4.1 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/12155#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC