Open monacofj opened 8 months ago
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.
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
reuse annotate
;;; 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:
Tentative fix in PR #920.
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
Currently,
reuse annotate
would render the output like thisThe suggested change should preserve the original indentation of the first paragraph: