davetron5000/gli — pull request #73 by gshutler (2012-03-06 10:44:23+00:00)
Title: Added the ability to provide multi-paragraph descriptions.

Whilst writing a tool with GLI I found that you couldn't specify a description with paragraphs as the code to ensure wrapping compliance was stripping them out. This is particularly useful for long descriptions so I thought it would be worth adding.

This pull request adds the ability to specify paragraphs within your help text and have it maintained during the wrapping compliance. It follows the formatting rules you see in wiki and markdown syntax of there having to be at least one blank line between paragraphs so it should be non-breaking for existing text.

### Two paragraphs

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices eros in orci auctor ut tincidunt magna auctor. Nam interdum pretium egestas.

Donec ipsum massa, mollis non laoreet tincidunt, consectetur id odio. Fusce a neque ligula, nec consectetur erat. Sed aliquam felis in orci pulvinar nec imperdiet magna feugiat.

### Still two paragraphs

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices eros in orci auctor ut tincidunt magna auctor. Nam interdum pretium egestas.

Donec ipsum massa, mollis non laoreet tincidunt, consectetur id odio. Fusce a neque ligula, nec consectetur erat. Sed aliquam felis in orci pulvinar nec imperdiet magna feugiat.

### One paragraph

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ultrices eros in orci auctor ut tincidunt magna auctor. Nam interdum pretium egestas.
Donec ipsum massa, mollis non laoreet tincidunt, consectetur id odio. Fusce a neque ligula, nec consectetur erat. Sed aliquam felis in orci pulvinar nec imperdiet magna feugiat.

If any changes need to be made then let me know.