diff --git a/cmd/check.go b/cmd/check.go index fff6a9d..a7f21f9 100644 --- a/cmd/check.go +++ b/cmd/check.go @@ -407,7 +407,7 @@ func chunkMarkdownByURL(body string) []string { for i < len(entryLines) && !strings.HasPrefix(entryLines[i], "- ") { i++ } - block := strings.Join(entryLines[start:i], "\n") + "\n\n" + block := strings.Join(entryLines[start:i], "\n") + "\n" entries = append(entries, entry{text: block, length: len(block)}) } diff --git a/internal/fsurls/fsurls.go b/internal/fsurls/fsurls.go index 9654ef7..fb9bb68 100644 --- a/internal/fsurls/fsurls.go +++ b/internal/fsurls/fsurls.go @@ -89,9 +89,9 @@ func CollectURLs(rootPath string, globs []string, respectGitignore bool) (map[st // Walk the filesystem walkFn := func(path string, d os.DirEntry, err error) error { - if isDebugEnv() { - fmt.Printf("::debug:: Walking path: %s\n", path) - } + // if isDebugEnv() { + // fmt.Printf("::debug:: Walking path: %s\n", path) + // } if err != nil { return nil @@ -125,11 +125,6 @@ func CollectURLs(rootPath string, globs []string, respectGitignore bool) (map[st return nil } - // Debug: announce file being parsed; GitHub shows ::debug only in debug runs - if isDebugEnv() { - fmt.Printf("::debug:: Scanned File: %s\n", rel) - } - f, ferr := os.Open(path) if ferr != nil { return nil @@ -476,10 +471,6 @@ func trimDelimiters(s string) string { return s } -func extractCandidates(rel string, content string) []string { - return nil -} - // matchCandidate holds a URL and its byte offset within the content type matchCandidate struct { URL string