Skip to content

Conversation

@jamesbraza
Copy link
Collaborator

See PR title

@jamesbraza jamesbraza self-assigned this Nov 1, 2025
Copilot AI review requested due to automatic review settings November 1, 2025 22:16
@jamesbraza jamesbraza added the bug Something isn't working label Nov 1, 2025
@dosubot dosubot bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label Nov 1, 2025
@dosubot
Copy link

dosubot bot commented Nov 1, 2025

Related Documentation

Checked 1 published document(s) in 1 knowledge base(s). No updates required.

How did I do? Any feedback?  Join Discord

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes trailing whitespace from formatted answers by eliminating an unnecessary newline character in the bibliography formatting. The change ensures that formatted_answer has no leading or trailing whitespace, which is now enforced by a new test assertion.

  • Removed trailing newline from bibliography formatting in populate_formatted_answers_and_bib_from_raw_answer()
  • Added test assertion to verify no leading/trailing whitespace in formatted answers

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/paperqa/types.py Removed trailing \n from bibliography string formatting to eliminate trailing whitespace
tests/test_paperqa.py Added assertion to verify formatted_answer has no leading/trailing whitespace

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Nov 1, 2025
@jamesbraza jamesbraza merged commit 816d22b into main Nov 1, 2025
16 of 20 checks passed
@jamesbraza jamesbraza deleted the removing-extra-whitespace branch November 1, 2025 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants