mirror of
https://github.com/LukeHagar/slinky.git
synced 2025-12-06 04:21:20 +00:00
Fix markdown chunking in check.go by removing extra newline and comment out debug logging in fsurls.go for cleaner output during URL collection.
This commit is contained in:
@@ -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)})
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user