feat: format tables in most cases#298
Merged
QuadnucYard merged 1 commit intotypstyle-rs:masterfrom May 22, 2025
Merged
Conversation
📊 Benchmark Performance Reportgroup base pr
----- ---- --
pretty-cetz-manual 1.00 951.2±8.47µs ? ?/sec 1.01 961.1±6.03µs ? ?/sec
pretty-codly 1.00 1973.5±18.37µs ? ?/sec 1.01 1990.1±27.10µs ? ?/sec
pretty-cpe 1.04 14.0±0.37ms ? ?/sec 1.00 13.4±0.68ms ? ?/sec
pretty-fletcher-diagram 1.00 563.4±8.00µs ? ?/sec 1.00 564.2±7.45µs ? ?/sec
pretty-fletcher-draw 1.00 1367.0±14.79µs ? ?/sec 1.02 1387.8±12.82µs ? ?/sec
pretty-tablex 1.00 3.6±0.02ms ? ?/sec 1.02 3.7±0.02ms ? ?/sec
pretty-touying-core 1.00 2.4±0.08ms ? ?/sec 1.01 2.4±0.02ms ? ?/sec
pretty-touying-utils 1.00 1315.2±9.65µs ? ?/sec 1.01 1332.1±12.99µs ? ?/sec
pretty-undergraduate-math 1.01 1023.8±17.89µs ? ?/sec 1.00 1018.1±22.83µs ? ?/secGenerated by GitHub Actions on Thu May 22 14:45:07 UTC 2025 |
Collaborator
Author
|
This prepares for table alignment. For better visualization, it is better to put cells in a row on a single line, even if they are too long. We may limit table alignment to cases where cells in the row are all single-line. |
224a54a to
66eb3a2
Compare
Enter-tainer
approved these changes
May 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Features:
grid,table), special rows (header,footer), and special cells (cell,hline,vline), without requiring prefixes (grid.,table.). Treat spread args as special cells. This is expected to introduce more false positives, since we do not rely on a language service that checks function signatures at runtime. Maybe users can utilize this feature for custom tables.headerandfooteras tables. Their column number derives from the container.Incapable cases are reduced to
Related issues:
headersame astable.header#196, although it's not a precise solution.