Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly aligned block #202

Open
Blacksmoke16 opened this issue Sep 9, 2022 · 0 comments
Open

Incorrectly aligned block #202

Blacksmoke16 opened this issue Sep 9, 2022 · 0 comments
Labels
component:console kind:bug An existing feature isn't working as expected

Comments

@Blacksmoke16
Copy link
Member

Blacksmoke16 commented Sep 9, 2022

When using ACON::Helper::Formatter helper to format a block that has escaped content and in large mode, there are extra spaces on the first/last line.

image

require "athena-console"

app = ACON::Application.new "MyApp"

app.register "test" do |_, output, cmd|
  formatter = cmd.helper ACON::Helper::Formatter

  output.print formatter.format_block "<info>some info</info>", "error", large: true

  ACON::Command::Status::SUCCESS
end

app.run
@Blacksmoke16 Blacksmoke16 added kind:bug An existing feature isn't working as expected component:console labels Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:console kind:bug An existing feature isn't working as expected
Development

No branches or pull requests

1 participant