Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whitespace

  • Loading branch information...
commit 64a2485247e96198681aca258703c63a9aab479d 1 parent e0c25f7
@fxn authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/tkn
View
6 bin/tkn
@@ -146,7 +146,7 @@ def render_center(content)
col = [1, 1 + (ncols - ansi_length(line.chomp))/2].max
str << cursor_at(row + i, col) + line
end
- end
+ end
end
# Renders a section banner.
@@ -174,10 +174,10 @@ def render_block(content)
nlines = content.count("\n")
row = [1, 1 + (nrows - nlines)/2].max
-
+
width = width(content)
col = [1, 1 + (ncols - width)/2].max
-
+
content.gsub(/^/) do
cursor_at(row, col).tap { row += 1 }
end
Please sign in to comment.
Something went wrong with that request. Please try again.