-
Notifications
You must be signed in to change notification settings - Fork 38
Auto-Format: Wrap string scalars to line width #35
Copy link
Copy link
Open
Description
YEdit has a line width setting in auto-format, but it does not seem to be using this to break strings across lines.
At a minimum, I would like this to break strings that use the > folded string indicator:
/estimates/price:
get:
summary: Price Estimates
description: >
The Price Estimates endpoint returns an estimated price range for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.
This should become:
/estimates/price:
get:
summary: Price Estimates
description: >
The Price Estimates endpoint returns an estimated price range for
each product offered at a given location. The price estimate is
provided as a formatted string with the full price range and the
localized currency symbol.<br><br>The response also includes low
and high estimates, and the
[ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code
for situations requiring currency conversion. When surge is active
for a particular product, its surge_multiplier will be greater
than 1, but the price estimate already factors in this multiplier.
It would also be helpful to have the option to convert inline strings to block-style wrapped strings, where the inline string exceeds the line length. So the example below would be auto-formatted the same as in the example above:
/estimates/price:
get:
summary: Price Estimates
description: The Price Estimates endpoint returns an estimated price range for each product offered at a given location. The price estimate is provided as a formatted string with the full price range and the localized currency symbol.<br><br>The response also includes low and high estimates, and the [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217) currency code for situations requiring currency conversion. When surge is active for a particular product, its surge_multiplier will be greater than 1, but the price estimate already factors in this multiplier.
NOTE: My knowledge of YAML is somewhat incomplete, so it's possible that I'm misunderstanding some of the rules. If someone thinks this looks incomplete or off-target, please chime in.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels