mirror of
https://github.com/digarok/radius.git
synced 2026-01-22 15:16:08 +00:00
Merge pull request #6 from digarok/indentation-comments-nooper
fix incorrect min bounds check/set
This commit is contained in:
@@ -192,7 +192,7 @@ source_contents.each_line do |line|
|
||||
elsif c == ';' && !in_operand
|
||||
in_comment = true
|
||||
# protect against "negative" spacing
|
||||
spaces = 1 > (comment_col_x-x) ? 1 : (comment_col_x-x)
|
||||
spaces = 0 > (comment_col_x-x) ? 0 : (comment_col_x-x)
|
||||
buf << " "*spaces
|
||||
|
||||
x+=comment_col_x-x
|
||||
|
||||
Reference in New Issue
Block a user