haskell / haddock

Haskell Documentation Tool
www.haskell.org/haddock/
BSD 2-Clause "Simplified" License
361 stars 241 forks source link

Support newlines in URL labels #578

Open crockeea opened 7 years ago

crockeea commented 7 years ago

With haddock-2.17.3, GHC-8.0.2 on linux-x86-64, the markup

<http://myurl.com foo 
bar>

is rendered as "<http://myurl.com foo bar" (without the trailing '>', and where the url portion is hyperlinked, but the words 'foo bar' are not.)

Of course what I want is for the phrase "foo bar" to be hyperlinked, without showing the URL. The reason for the newline is to respect character limits, wherever possible.

harpocrates commented 7 years ago

This appears to be intentional.