Skip to content

Preserve first comment indentation #919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
monacofj opened this issue Feb 23, 2024 · 3 comments · May be fixed by #920
Closed

Preserve first comment indentation #919

monacofj opened this issue Feb 23, 2024 · 3 comments · May be fixed by #920

Comments

@monacofj
Copy link
Contributor

This is minor change that I needed to serve my particular demands; sharing it in the event it's of use:

preserve the indentation of the first comment.

TL;DR;

Some editors (e.g. Emacs) use to automatically indent comments in assembly code, like

          ;; Do something

          mov $42, %eax
          ret

          ;; Do something else

          sub $1, %eax
          ret

Currently, reuse annotate would render the output like this

;;; SPDX-FileCopyrightText: 2024 Author
;;;
;;; SPDX-License-Identifier: CCO

;; Do something

          mov $42, %eax
          ret

         ;; Do something else

          sub $1, %eax
          ret

The suggested change should preserve the original indentation of the first paragraph:

;;; SPDX-FileCopyrightText: 2024 Author
;;;
;;; SPDX-License-Identifier: CCO

        ;; Do something

          mov $42, %eax
          ret

         ;; Do something else

          sub $1, %eax
          ret
@monacofj
Copy link
Contributor Author

Tentative fix in PR #920.

Copy link

Thank you for your time and contributions! Unfortunately, this issue has been inactive for quite a while which means we probably can't manage the time to deal with it. That's why we're marking it as stale. We want to keep things tidy and focus on active discussions, but we’re always happy to revisit if this is still relevant!

If you’d like to keep this open, please add a comment to let us know and remove the label stale. Otherwise, this issue will most likely be automatically closed soon.

@github-actions github-actions bot added the stale label Mar 26, 2025
Copy link

Since there hasn't been any recent activity after the last message, we're going to go ahead and close this issue. Feel free to reopen this and remove the labels stale and unresolved if it's urgent.

We truly appreciate your contributions and engagement!

Thank you and happy hacking!

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant