Skip to content

Render issue with tabs in comments #7598

@WeiN76LQh

Description

@WeiN76LQh

Version and Platform (required):

  • Binary Ninja Version: 5.2.8559-dev (c4f13e43)
  • Edition: Commercial
  • OS: macOS
  • OS Version: 15.5
  • CPU Architecture: M1

Bug Description:
Comments that contain tabs are not rendered correctly. This is the case for both comments in a function body, as well for the function itself.

Steps To Reproduce:

  1. Create a function comment with the following content:
	1 Foo
	2 Bar
	3 Baz

The space before the numbers is a tab.
2. Observe the comment text isn't aligned as expected.

Expected Behavior:
The numbers after the tabs should be aligned.

Screenshots/Video Recording:
A function comment when rendered:

Image

The function comment when editing it:

Image

Additional Information:
This is might be the same as #5972.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions