8000 Additional formatting · Issue #47 · dnnrly/httpref · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Additional formatting #47
Open
Open
@Erfanm83

Description

@Erfanm83

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0