Skip to content

Rust licenseheaders not working when template does not end in endline #84

Description

@ftorres7382

I found a bug where when I use a template, point it to rust, if the template does not end in a clean endline, the end of the comments in the header also does not have an endline.

This causes the tool to endlessly add the licenseheaders every time you run it.

Command:
licenseheaders -t ./docs/apache2.tmpl -o ftorres7382 -y 2026 -E .py -E .rs

It works if I add a endline to the template, but just thought I should post this here.

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