Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix normalize-and-pad-markup to skip actually padding #133

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

nnichols
Copy link
Contributor

I ended up reading through the ANSI namespace while tracking down a red herring, and stumbled on this if form. The call to apply-padding wasn't changing the data, but it would incur some amount of processing overhead that we don't need to do.

Thanks for considering, and let me know if there's anything I need to adjust/modify.

akombo
akombo approved these changes Jan 22, 2025
@@ -196,11 +196,11 @@
;; If at or over desired width, don't need to pad
(if (<= width actual-width)
{:width actual-width
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: Hook up clj-kondo to find this kind of thing.

@hlship hlship merged commit 7e92323 into clj-commons:main Jan 22, 2025
1 check passed
@hlship hlship added this to the 3.4.0 milestone Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants