[Haddock] [haddock] #250: haddocs fails to parse U+00A0 (aka c2 a0 NO-BREAK SPACE) in @...@ block, but works in '>' (bird track)

haddock haddock at projects.haskell.org
Sat Jul 20 11:39:09 BST 2013


#250: haddocs fails to parse U+00A0 (aka c2 a0 NO-BREAK SPACE) in @...@ block,
but works in '>' (bird track)
-------------------+--------------------------------------------------------
Reporter:  slyfox  |       Owner:     
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:     
 Version:  2.13.1  |    Keywords:     
-------------------+--------------------------------------------------------
 Bad.hs:
 {{{
 -- | test
 --
 -- @
 --     nbsp_c2_a0 = " "
 -- @
 module Bad where
 }}}

 Good.hs:
 {{{
 -- | test
 --
 -- > nbsp_c2_a0 = " "
 module Good where
 }}}

 Be careful: " " is ont "\x20", but "\xC2\xA0" in both cases.

 Haddock fails to parse Bad.hs, but works on Good.hs:
 {{{
 [sf] /tmp/y:haddock --html src/Good.hs src/Bad.hs
 Haddock coverage:
 haddock module header parse failed: Cannot parse header documentation
 paragraphs
    0% (  0 /  1) in 'Bad'
  100% (  1 /  1) in 'Good'
 }}}

 Found in haddock-2.13.2.1.

 Originally if was found in directory-layour source.
 Hackage parses it, but not local haddock:

     http://hackage.haskell.org/packages/archive/directory-
 layout/0.4.0.0/doc/html/System-Directory-Layout-Traverse.html

 Thanks!

-- 
Ticket URL: <http://trac.haskell.org/haddock/ticket/250>
haddock <http://www.haskell.org/haddock>
Haddock, The Haskell Documentation Tool


More information about the Haddock mailing list