nginx-config-formatter icon indicating copy to clipboard operation
nginx-config-formatter copied to clipboard

Multiline values formatting

Open dandelionred opened this issue 6 years ago • 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?

dandelionred avatar Feb 10 '19 14:02 dandelionred

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.

slomkowski avatar Apr 20 '21 00:04 slomkowski