Include the length of comments in max_schema_info_width only when the with_column_comments option is true.
Closed this issue · 0 comments
shibaaaa commented
When the with_column_comments option is false, there is still the length of comments included in max_schema_info_width, which makes it hard to read due to the space between the column and the data type even when there are no actual comments.
If we only include the length of comments in max_schema_info_width when both the with_comment and with_column_comments options are true, I believe it would become more readable.
Thank you.
annotaterb/lib/annotate_rb/model_annotator/model_wrapper.rb
Lines 130 to 133 in 2fe6711
Version
- annotaterb version: 4.10.2