Skip to content

Empty tabstops in the middle of a line are wider #13

@geroldmeisinger

Description

@geroldmeisinger

I do some thinking about elastic tabstops over on https://elastic-tabstops.readthedocs.io/en/latest/implementation.html and came up with the following testcase:

01
	456789A123
		// rectangle
		aa	dddd	ggggggg
		bbbbbbb	e	hhhhh
		cccccccccccc	fffffffffff	iii

		// triangle top left
		aa	dddd	gggggg
		bbbbbbb	e
		cccccccccccc

		// triangle bottom left
		aa
		bbbbbbb	e
		cccccccccccc	ffffffff	iii

		// triangle top right
		aa	dddd	gggggg
			e	hhhhh
				iii

		// triangle bottom right
				gggggg
			e	hhhhh
		cccccccccccc	ffffffff	iii

		// diagonal down
		aa	dddd
		bbbbbbb		hhhhh
		cccccccccccc			lll

		// diagonal up
		aa			jjj
		bbbbbbb		hhhhh
		cccccccccccc	ffffffff
	45
0123456789A12

Expected:

		// diagonal down
		aa            dddd
		bbbbbbb         hhhhh
		cccccccccccc      lll

In Version 1.9.0 I noticed that the tabstops are wider at diagonal down and diagonal up. I wonder what your opinion is about this. It appears you treat both indentation tabs and empty elastic tabstops as "empty columns".

Errors - Elastic Notepad

same goes for Always Aligned btw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions