Skip to content

Commit

Permalink
Fix incorrectly aligned block (#519)
Browse files Browse the repository at this point in the history
  • Loading branch information
tamdaz authored Feb 6, 2025
1 parent 0d29ec4 commit 82b0e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/console/spec/helper/formatter_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe ACON::Helper::Formatter do
it "escapes < within the block" do
ACON::Helper::Formatter.new.format_block("<info>some info</info>", "error", true).should eq normalize <<-BLOCK
<error> </error>
<error> \\<info>some info\\</info> </error>
<error> \\<info>some info\\</info> </error>
<error> </error>
BLOCK
end
Expand Down
2 changes: 1 addition & 1 deletion src/components/console/src/helper/formatter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Athena::Console::Helper::Formatter < Athena::Console::Helper
messages = large ? [" " * len] : [] of String

lines.each do |line|
messages << %(#{line}#{" " * (len - line.size)})
messages << %(#{line}#{" " * (len - line.delete('\\').size)})
end

if large
Expand Down

0 comments on commit 82b0e20

Please sign in to comment.