Skip to content

Commit d674028

Browse files
author
stasoid
committedAug 8, 2020
Fix grid printing for unicode files
1 parent 38529d5 commit d674028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎grid.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def axial_to_index coords
125125

126126
def to_s
127127
@grid.map{|line|
128-
' '*(2*@size-1 - line.size) + line.map{|c,d| (d ? '`' : ' ') + (OPERATORS.invert[c]||c[1].chr)}*''
128+
' '*(2*@size-1 - line.size) + line.map{|c,d| (d ? '`' : ' ') + (OPERATORS.invert[c]||c[1].chr(Encoding::UTF_8))}*''
129129
}*$/
130130
end
131131
end

0 commit comments

Comments
 (0)
Please sign in to comment.