Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Unindent strings #173

Closed
wants to merge 3 commits into from
Closed

Unindent strings #173

wants to merge 3 commits into from

Conversation

chris-martin
Copy link
Contributor

Some languages' comments (python in particular) tend to start with leading whitespace which shouldn't show up in the resulting docs.

This change modifies the example parser to such that when all lines in a string start with the same whitespace, that whitespace is removed from the result.

Affected strings:

  • apiExample
  • apiDescription
  • The description portion of apiParam

Some languages' comments (python in particular) tend to start with
leading whitespace which shouldn't show up in the resulting docs.

This change modifies the example parser to such that when all lines in
the example code start with the same whitespace, that whitespace is
removed from the result.
@chris-martin chris-martin changed the title Unindent example code Unindent strings Dec 2, 2014
@rottmann
Copy link
Member

rottmann commented Dec 3, 2014

Thank you, will check it and merge it soon.

@rottmann
Copy link
Member

Added in 0.12.0

@rottmann rottmann closed this Dec 22, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants