It's possible to define a section using braces (curly brackets) rather than layout (indentation). For example:
library { default-language: Haskell2010 }
These are discouraged, but allowable as input. Explicit support for this is nice because other tools could emit package descriptions using braces and then use Gild to turn it into the normal layout format.
This pull request started by adding tests for sections like this, then noticing that extra spaces snuck in. So I figured I might as well strip the extra blank spaces since generally there should be no trailing space in the output.
It's possible to define a section using braces (curly brackets) rather than layout (indentation). For example:
These are discouraged, but allowable as input. Explicit support for this is nice because other tools could emit package descriptions using braces and then use Gild to turn it into the normal layout format.
This pull request started by adding tests for sections like this, then noticing that extra spaces snuck in. So I figured I might as well strip the extra blank spaces since generally there should be no trailing space in the output.