fogus/marginalia — Issue #81: Docstrings should be dedented
Author: anntzer
Created: 2012-01-11 21:21:07+00:00
State: open

Consider the following example:
```
(def f
"A docstring

- a list
- another element

Rest of the docstring."
(function contents))
```

The markdown parser sees that the last line of the docstring is indented, so believes that it is part of the second element of the list. Instead, I think the parser should first remove two leading spaces from each line of the docstring (except the first one) before feeding the result to markdown (à la textwrap.dedent function that Python has).