diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 14:31:59 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-05 14:31:59 -0400 |
| commit | a80b95636309b5eac2f6d0c44e49c714467cda71 (patch) | |
| tree | 70e6056a14b4327c93191aa900046c0b7a674988 /pkg | |
| parent | f8e36f28545f72c30172773d1bdd842f5d9f2372 (diff) | |
Fix headings not being written by customOutput
Diffstat (limited to 'pkg')
| -rw-r--r-- | pkg/query/outputs.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/query/outputs.go b/pkg/query/outputs.go index 21c3f4e..08a46e5 100644 --- a/pkg/query/outputs.go +++ b/pkg/query/outputs.go @@ -326,6 +326,8 @@ func (o CustomOutput) writeDoc(w io.Writer, doc *index.Document) (int, error) { b.WriteString(strings.Join(doc.Authors, o.listSeparator)) case OUT_TOK_TAGS: b.WriteString(strings.Join(doc.Tags, o.listSeparator)) + case OUT_TOK_HEADINGS: + b.WriteString(doc.Headings) case OUT_TOK_LINKS: b.WriteString(strings.Join(doc.Links, o.listSeparator)) case OUT_TOK_META: |
