Multiline format statements not converted
See original GitHub issueHi, another one for you. This format statement is not processed (ignored):
print("Finished: min time: {}, max_time: {}, ave time: {}".format(
min_time,
max_time,
ave_time
))
It would be an obvious candidate for f-strification.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
In C can a long printf statement be broken up into multiple lines?
The idea is that the printf() conversion speficiers and the respective variables are all lined up "nicely" (for some values of "nicely").
Read more >Pretty format YAML issue with multiline strings #47 - GitHub
But pretty format YAML converts it back to a single line and it's not pretty :) I can't use > because it adds...
Read more >Strings and Characters — The Swift Programming Language ...
String interpolation is a way to construct a new String value from a mix of constants, variables, literals, and expressions by including their...
Read more >YAML Multiline Strings
Find the right syntax for your YAML multiline strings. There are two types of formats that YAML supports for strings: block scalar and...
Read more >Python - Multi-Line Statements - GeeksforGeeks
In this type of multi-line statement, we will be using the line continuation character (\) to split a statement into multiple lines. Example:...
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
fixed. Starting with 0.18, default is: multiline statements resulting in a line shorter than 80 characters are transformed. To change this limit, use flag
flynt --line_length LINE_LENGTH
, e.g. set it to 1000 to convert all reasonably applicable lines.Add
--no_multiline
flag to convert single lines only.I will reopen this to keep track of this feature