Additional formatting
- Dominant language
- Go
- Stars
- 45
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
Assessment
This issue has not been assessed yet.