Last 12 weeks · 0 commits
2 of 6 standards met
Previously, a cell was a block of text to the left of some tab. This meant that a table like this: aa\tbb a\tb would be formatted as aa bb a b in right-alignment mode because the b's were not actually in a cell, and thus didn't get aligned. This commit modifies the notion of a "cell" in right- and center-alignment mode to also include text to the right of the last tab on the line. This text is now considered part of a cell and aligned accordingly. Implemented as describe above, this change would cause many trailing spaces to be printed in right- and center-alignment modes, including on empty lines. To alleviate this, trailing spaces in the final cell of a line are not printed. fixes #29
Repository: BurntSushi/tabwriter. Description: Elastic tabstops for Rust. Stars: 273, Forks: 26. Primary language: Rust. Languages: Rust (98.7%), Makefile (1.1%), Vim Script (0.2%). License: Unlicense. Open PRs: 4, open issues: 2. Last activity: 12mo ago. Community health: 42%. Top contributors: BurntSushi, mhristache, waywardmonkeys, jqnatividad, alex-ozdemir, gsquire, pickfire, kdar, sanga.