- Extract TAB_WIDTH constant (4) replacing magic numbers - Calculate tab stop as TAB_WIDTH - (col % TAB_WIDTH) for proper alignment - Split tab expansion across rows when width < TAB_WIDTH - Update test_wrap_with_tab expected value for new behavior - Add tests: narrow width, stop alignment, line boundary, regression Fixes: #27