Repository navigation
Conversation
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.
Related to #58.
align()prepends a tab to the message; it does not pad the level. Withsimple(), different level lengths can reach different tab stops. This documents that limitation and adds an executablepadLevels() + simple()example using the existing API. The explanation covers custom levels, the raw LEVEL symbol, finalizer ordering, fixed-width prefixes and the limitation of string-length padding for Unicode terminal cells.Runtime behavior is unchanged. This does not claim to fix the output of
align() + simple()or resolve every alignment layout. Nine characterization/composition tests cover the documented behavior and recipe, including metadata and colorized output. Custom color registrations are restored after each test.Validation at head 3319427:
npm test(including lint/build), 178 passing; TypeScript check passed. The actual README snippet was executed.npm test, 178 passing on each, versus 169 on the unchanged baseline. Test-name inventories contain all baseline cases plus the nine additions. TypeScript checks passed.Fork validation: https://github.com/a5768549/logform/actions/runs/40403945764
AI assistance: Hermes Agent prepared the documentation and tests and ran the validation; an independent agent review found a test-state leak, which was corrected and rechecked. No separate human review or maintainer approval is claimed.