Repository navigation
pr: continue line numbers after a form feed - #16170
Conversation
A form feed ends a line, but the form feed branch of get_pages did not advance the line counter, so with -n the next line was given the same number and every later number was one too small.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
With
-n, a form feed ends a line but did not advance the line counter, so the next line got the same number and all later numbers were one too small:The form feed branch of
get_pagesnow increments the counter like the newline branch does. The\n\fcase, where no line is emitted for the form feed, is unchanged. The output now matches GNUprfor these inputs.Added
test_line_numbers_continue_after_form_feed.Closes #16131