laminas-api-tools / api-tools-documentation

Laminas API Tools API documentation module
https://api-tools.getlaminas.org/documentation
BSD 3-Clause "New" or "Revised" License
6 stars 15 forks source link

Allow new-lines in Method descriptions #10

Open weierophinney opened 4 years ago

weierophinney commented 4 years ago

The descriptions of Methods (ex. POST, GET, etc.) can have new-lines on data-entry, but the new-lines are ignored in this Documentaiton module.

As it stands right now, new-lines are, effectively, just spaces. This can make the description of a given method more more difficult to read when there is more than a few sentences.

apigility_documentation_css_change

See the screen-shot for an example of the desired effect: I have included the CSS ( white-space: pre ) on the related element.


Originally posted by @dmalouf at https://github.com/zfcampus/zf-apigility-documentation/issues/42