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

Additional formatting #47

Open
Erfanm83 opened this issue Oct 23, 2024 · 0 comments
Open

Additional formatting #47

Erfanm83 opened this issue Oct 23, 2024 · 0 comments

Comments

@Erfanm83
Copy link
Contributor

Describe the bug
The Summarize function is not formatting the output as expected in the test TestReference_SummarizeContainsFormattedTitle. The test compares character positions in the summary output, but the actual output does not match the expected values, causing the test to fail.

To Reproduce
Steps to reproduce the behavior:

  1. Run the tests with go test -v
  2. Check the output of TestReference_SummarizeContainsFormattedTitle
  3. Observe the character position mismatch in the summary output.

Expected behavior
The Summarize function should format the title and summary with consistent character positions that match the test's expected output.

Test Output
The test currently produces mismatches like:

  • Expected: 110, Actual: 53
  • Expected: 97, Actual: 49

Desktop (please complete the following information):

  • OS: Linux
  • Go Version: go1.xx

Additional context
I have analyzed the bug and can provide a fix to ensure the Summarize function works as expected. The issue seems related to the way the lipgloss styles are being applied in the Summarize function.

@Erfanm83 Erfanm83 changed the title Summarize function Returns Incorrect Character Positions in Formatted Output Additional formatting Oct 25, 2024
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

No branches or pull requests

1 participant