slomkowski/nginx-config-formatter

Multiline values formatting

Opened this issue · 1 comments

This (it comes from sample nginx magento snippet)

gzip_types
    text/plain
    text/css
    text/js
    text/xml
    text/javascript
    application/javascript
    application/x-javascript
    application/json
    application/xml
    application/xml+rss
    image/svg+xml;

is converted to

gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/x-javascript
application/json
application/xml
application/xml+rss
image/svg+xml;

Could it format such multiline values the padded way?

In fact, this is a matter of style. Perhaps, current formatting is preferred for some, as shown in #9. I'll probably make an option in FormatterOptions for it. Leaving it open for now.