search_files strips leading whitespace from matched lines
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 88/100
Research direction
Start in internal/searchfiles/searchfiles.go, where matched lines are processed before the file:line:match output is formatted. Review internal/searchfiles/searchfiles_test.go and add coverage showing that leading indentation and trailing spaces are retained, then run the searchfiles tests to verify the raw matched line is preserved.
Written by the indexing model from the issue text.
Description
Background
internal/searchfiles/searchfiles.go uses strings.TrimSpace on matched lines before formatting the file:line:match output. This removes indentation, which is significant for code searches.
Expected behavior
The raw matched line should be preserved in the output so indentation and trailing spaces are retained.
Files to change
internal/searchfiles/searchfiles.gointernal/searchfiles/searchfiles_test.go
Related
PR #102 (Phase 2 OpenClaw/Hermes tool compatibility)
- Dominant language
- Go
- Stars
- 2
- Forks
- 1
- Avg merge
- 6h 9m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from redhat-et/docsclaw
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
All issues in redhat-et/docsclaw
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 84/100
-
enhancement needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
kind/cleanup
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
kubernetes-sigs/kueue#15947 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100