Formatting options
See original GitHub issueWould it be possible to have an option for which formatting style you preferred from the style guide?
The current output is for the first one, guessing some of us would prefer the second.
https://rubystyle.guide/#no-double-indent
# good
def send_mail(source)
Mailer.deliver(to: 'bob@example.com',
from: 'us@example.com',
subject: 'Important message',
body: source.text)
end
# good (normal indent)
def send_mail(source)
Mailer.deliver(
to: 'bob@example.com',
from: 'us@example.com',
subject: 'Important message',
body: source.text
)
end
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Which text formatting options are available? | Authoring Content
The ScreenSteps article web editor provides the following formatting options through the toolbar: Bold; Italic; Underline; Text and Text ...
Read more >Add and format text - Microsoft Support
Select the text you want to format. To select a single word, double-click it. To select a line of text, click to the...
Read more >4. Formatting Text, Paragraphs, and Headings - Word 2007
First, tell Word which text you want to format by selecting it. Then format away. Or, you can set up your formatting options...
Read more >Text Formatting - Utah Valley University
Microsoft. Word and Google Docs have several text-formatting features you can use, including font, font size, bold, italics, underline, text color, and ...
Read more >Formatting options - Drillster
The various formatting options · Entering formatted content · Escaping HTML code · Influence on open ended answers · Examples · Frequently Asked...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dfockler as @UnderpantsGnome said, this should be the default behavior now.
@dfockler in the latest versions the second indentation is what’s produced as long as you have parens around the args, if you don’t have parens it will indent all the way to the first arg.