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
Improve visual indentation logic for tables #18849
Improve visual indentation logic for tables #18849
Conversation
eec2c56
to
103380e
Compare
@@ -238,15 +243,15 @@ | |||
context 'password' do | |||
it 'should show just the password' do | |||
creds.cmd_creds('-t', 'password') | |||
# Table matching really sucks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# ca62fd9102665d6986f918ae42cae244e/lib/rex/text/table.rb#L221-L222 | ||
# So use https://en.wikipedia.org/wiki/Non-breaking_space as a workaround for now. A change should exist in Rex-Text to support this requirement | ||
TABLE_INDENT = "\xc2\xa0\xc2\xa0\\_ ".freeze | ||
TABLE_INDENT = " \\_ ".freeze |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the future this should be moved into a centralized place if we want consistent indentation of rows, or maybe it should be part of the 'Styler' concept that we have for rows - which currently adds coloring support and arrows like =>
, so visual indiciators would work here too
103380e
to
d76dd4a
Compare
@@ -426,7 +426,7 @@ GEM | |||
rex-socket | |||
rex-text | |||
rex-struct2 (0.1.4) | |||
rex-text (0.2.53) | |||
rex-text (0.2.56) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing else noteworthy here, just some cleanup from past me
Release NotesThis adjusts the logic used for the visual indentation of tables. |
Improve visual indentation logic for tables
Requires rapid7/rex-text#68
Verification