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

Simplify \lastskip,\lastkern (suggested by D.Ginev) #2424

Merged
merged 2 commits into from
Oct 9, 2024
Merged

Conversation

brucemiller
Copy link
Owner

Simplify \lastskip (and also simlar \lastkern); as mentioned in last comment in #2423. The code was correct but hadn't been cleaned up after development.

@brucemiller brucemiller requested a review from dginev October 8, 2024 16:18
@brucemiller
Copy link
Owner Author

Actually, the loops were needed, just unfinished: They needed next clauses to skip over Comments!

Copy link
Collaborator

@dginev dginev left a comment

Choose a reason for hiding this comment

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

Looks better, and good to merge ✅

I'm a tiny bit tempted to ask for a tricky test exercising \lastskip and \lastkern, but just voicing the thought for now.

One comment:

Actually, the loops were needed, just unfinished

Let me note again that this was caught by the Rust compiler during porting. It noticed the previous code for the loops only executed one step and exited -- something I (an actual human) missed, while reviewing the other PR. I'm quite excited this happened.

@brucemiller
Copy link
Owner Author

The commands are tested, just not the comments special cases (since comments are left out of tests due to variability). Yeah, compilers are good; Thanks Rust! :>

@brucemiller brucemiller merged commit aba805b into master Oct 9, 2024
26 checks passed
@brucemiller brucemiller deleted the fix-lastskip branch October 9, 2024 12:57
teepeemm pushed a commit to teepeemm/LaTeXML that referenced this pull request Oct 29, 2024
* Simplify \lastskip,\lastkern (suggested by D.Ginev)

* Fix \lastskip,\lastkern by also skipping over any trailing Comment boxes
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.

2 participants