Skip to content

start_highlight and end_highlight attributes incorrectly named start_hightight and end_hightight in hlcommon/defaults.cc #147

@iandiver

Description

@iandiver

I found that matched words in search result excerpts were not highlighted by default even though the documented default values for the attributes start_highlight and end_highlight are "< strong >" and "< /strong >" respectively. I remembered from an earlier ht://Dig installation that these highlights were present by default. I checked the source and found these default values in hlcommon/defaults.cc but they are associated with the attribute names start_hightight and end_hightight, which are incorrect. I propose renaming these back to start_highlight and end_highlight.
I notice some other default behaviors were not enabled as documented so it is possible there are other misnamed attributes in default.cc. I will try to check them.
Let me know if someone else is working on this.

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