You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
max_line_length does not ensure that a lines has less characters than this value. Instead, the line is broken after the first word that is located after max_line_length.
A quick fix would be to simply apply a line break on the blank space before the word, and not after.
I understand that this feature is still under development.
The text was updated successfully, but these errors were encountered:
Thanks for opening an issue! As mentioned in the docs, this utilizes the best_width feature from the underlying library, and I've so far been unsuccessful in improving what it does. The config name max_line_length was an unfortunate choice by me, as it implies a guarantee that yamlfmt unfortunately can't make.
I unfortunately can't make any specific promises as to when I will get to this but it will be in my backlog for library issues that I will try to get to.
max_line_length does not ensure that a lines has less characters than this value. Instead, the line is broken after the first word that is located after max_line_length.
A quick fix would be to simply apply a line break on the blank space before the word, and not after.
I understand that this feature is still under development.
The text was updated successfully, but these errors were encountered: