-
Notifications
You must be signed in to change notification settings - Fork 768
Improve formatting of ${...} #1108
Copy link
Copy link
Closed as not planned
Labels
co.help-wantedCommunity opportunity to help documentationCommunity opportunity to help documentatione2-daysCan complete in < 5 days of normal, not dedicated, workCan complete in < 5 days of normal, not dedicated, workinfra.designRelates to the design of docs.Dart.devRelates to the design of docs.Dart.devinfra.structureRelates to the tools that create dart.devRelates to the tools that create dart.devp3-lowValid but not urgent concern. Resolve when possible. Encourage upvote to surface.Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.
Metadata
Metadata
Assignees
Labels
co.help-wantedCommunity opportunity to help documentationCommunity opportunity to help documentatione2-daysCan complete in < 5 days of normal, not dedicated, workCan complete in < 5 days of normal, not dedicated, workinfra.designRelates to the design of docs.Dart.devRelates to the design of docs.Dart.devinfra.structureRelates to the tools that create dart.devRelates to the tools that create dart.devp3-lowValid but not urgent concern. Resolve when possible. Encourage upvote to surface.Valid but not urgent concern. Resolve when possible. Encourage upvote to surface.
@mkustermann pointed out that code inside of
${...}is formatted like the rest of the string. It'd be good to format it like real code. E.g. in www.dartlang.org/articles/dart-vm/io#file-system-access, the print statement in the first code snippet looks something like this:That
awaitcode (if outside of the string) would look like this:This is probably a prettify issue, but it'd be really nice to fix it.