You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixhaskell#7714: use nroff -man | less as backend for cabal man
Directly piping into `man -l -` does not work as BSD-`man` does not
understand option `-l`. More standardized are the building blocks
`nroff` and `less`.
`cabal man` now should behave as pipeline
```
cabal man --raw | nroff -man /dev/stdin | less
```
Also fixed output of `cabal man --raw` so that it does not produce
warnings.
- `.R` removed. Was warning:
```
`R' is a string (producing the registered sign), not a macro.
```
- No quoted 'new-FOO' should appear at beginning of line. Was
warning:
```
warning: macro `new-FOO'' not defined (probably missing space after `ne')
```
Added to `cabal-testsuite/PackageTests/Man/cabal.test.hs` a check that
the `stderr` output of `nroff -man /dev/stdin` is empty (no warnings).
Remaining problem:
Unfortunately, after quitting `less` with `q` the following error is
displayed:
```
fd:NNN: commitBuffer: resource vanished (Broken pipe)
```
Not sure how to fix this (my attempts failed).
0 commit comments