Ticket #784 (new defect)

Opened 2 years ago

Cabal strips out { and } in literate code blocks of the description field

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.8.0.6
Severity: normal Keywords:
Cc: dagitj@… Difficulty: unknown
GHC Version: Platform:

Description

If you have a description like this:

description: Here is some C code:
             .
             > for(i = 0; i < 100; i++){
             >   printf("%d\n",i);
             > }
             .

Cabal will strip out the brackets. You can use @..@ syntax with &#123; and &#125; except that then the whitespace is off in your code block and you have to escape any symbols that haddock knows. Putting a blackslash (\) in front the braces does not help.

The above example works fine in plain haddock leading me the conclusion that cabal is eating the braces.

Note: See TracTickets for help on using tickets.