diff --git a/meta_package_manager/inventory.py b/meta_package_manager/inventory.py index 2a24e0efa..be62b1e23 100644 --- a/meta_package_manager/inventory.py +++ b/meta_package_manager/inventory.py @@ -178,11 +178,9 @@ def update_readme() -> None: readme, footnotes, "\n\n", - # XXX mdformat-footnote is stripping all HTML comments after footnotes: + # mdformat-footnote is stripping all HTML comments after footnotes: # https://github.com/executablebooks/mdformat-footnote/issues/11 - # So we can't protect the content with an end tag here. This is dangerous, as - # it could lead to content loss if the footnotes are not already properly - # positioned at the end of the file. - # "\n\n", - None, + # So we protect the content to be replaced with an end tag that we put at the + # tail of the last footnote line, without any carriage return. + "\n", ) diff --git a/readme.md b/readme.md index 2344c421b..24eec7b24 100644 --- a/readme.md +++ b/readme.md @@ -304,4 +304,4 @@ Other subcommands and options are documented in: [^linux]: Linux: ALT Linux, Amazon Linux, Android, Arch Linux, Buildroot, CentOS, CloudLinux OS, Debian, Exherbo Linux, Fedora, Gentoo Linux, Guix System, IBM PowerKVM, KVM for IBM z Systems, Linux Mint, Mageia, Mandriva Linux, openSUSE, Oracle Linux, Parallels, Pidora, Raspbian, RedHat Enterprise Linux, Rocky Linux, Scientific Linux, Slackware, SUSE Linux Enterprise Server, Tuxedo OS, Ubuntu, Unknown Linux, Windows Subsystem for Linux v1, Windows Subsystem for Linux v2, XenServer. -[^unix]: Unix: Cygwin, GNU/Hurd, IBM AIX, Solaris. \ No newline at end of file +[^unix]: Unix: Cygwin, GNU/Hurd, IBM AIX, Solaris.