From a5ebe03c2f0105e0f4a8a88ae5fccb67aeec0531 Mon Sep 17 00:00:00 2001 From: Kay Hayen Date: Tue, 30 Nov 2021 18:03:02 +0100 Subject: [PATCH] Quality: Make sure docs have newline at the end. --- Credits.rst | 2 +- Developer_Manual.rst | 2 +- README.rst | 2 +- Standard-Plugins-Documentation.rst | 2 +- UserPlugin-Creation.rst | 2 +- Using-Plugin-Options.rst | 2 +- nuitka/tools/quality/autoformat/Autoformat.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Credits.rst b/Credits.rst index d7071cfd2..d2b6b755e 100644 --- a/Credits.rst +++ b/Credits.rst @@ -139,4 +139,4 @@ The order is sorted by time. - The `black project `__ Thanks for making a fast and reliable way for automatically - formatting the Nuitka source code. \ No newline at end of file + formatting the Nuitka source code. diff --git a/Developer_Manual.rst b/Developer_Manual.rst index 62bd6110b..92d20afa4 100644 --- a/Developer_Manual.rst +++ b/Developer_Manual.rst @@ -4536,4 +4536,4 @@ readable to human, but easily used to generate PDF or HTML documents. You will find the current source under: https://github.com/Nuitka/Nuitka/blob/develop/Developer_Manual.rst -And the current PDF under: https://nuitka.net/doc/Developer_Manual.pdf \ No newline at end of file +And the current PDF under: https://nuitka.net/doc/Developer_Manual.pdf diff --git a/README.rst b/README.rst index c219a7d16..b32efd74a 100644 --- a/README.rst +++ b/README.rst @@ -1564,4 +1564,4 @@ readable to human, but easily used to generate PDF or HTML documents. You will find the current version at: https://nuitka.net/doc/user-manual.html -And the current PDF under: https://nuitka.net/doc/README.pdf \ No newline at end of file +And the current PDF under: https://nuitka.net/doc/README.pdf diff --git a/Standard-Plugins-Documentation.rst b/Standard-Plugins-Documentation.rst index 150242e63..d19e84dd2 100644 --- a/Standard-Plugins-Documentation.rst +++ b/Standard-Plugins-Documentation.rst @@ -227,4 +227,4 @@ torch Dynamic neural networks in Python with strong GPU acceleration. *Torchvision* requires *numpy*. -- Options: none. \ No newline at end of file +- Options: none. diff --git a/UserPlugin-Creation.rst b/UserPlugin-Creation.rst index 4d592a9d0..647d4754e 100644 --- a/UserPlugin-Creation.rst +++ b/UserPlugin-Creation.rst @@ -236,4 +236,4 @@ the methods have no argument. | shallWarnImplicitRaises | *bool* = ``--warn-implicit-exceptions`` | +--------------------------------------+-----------------------------------------------------------------------------------+ | shallWarnUnusualCode | *bool* = ``--warn-unusual-code`` | -+--------------------------------------+-----------------------------------------------------------------------------------+ \ No newline at end of file ++--------------------------------------+-----------------------------------------------------------------------------------+ diff --git a/Using-Plugin-Options.rst b/Using-Plugin-Options.rst index d3d07cc99..f70a81991 100644 --- a/Using-Plugin-Options.rst +++ b/Using-Plugin-Options.rst @@ -52,4 +52,4 @@ not collide with other plugins, as we have no per plugin namespace here. To see a working example for a user plugin with options, consult `this `__ -document. \ No newline at end of file +document. diff --git a/nuitka/tools/quality/autoformat/Autoformat.py b/nuitka/tools/quality/autoformat/Autoformat.py index f6a79881a..4d7bfdb51 100755 --- a/nuitka/tools/quality/autoformat/Autoformat.py +++ b/nuitka/tools/quality/autoformat/Autoformat.py @@ -422,7 +422,7 @@ def _cleanupRstFmt(filename): inside = False lines.append(line) - updated_contents = b"\n".join(lines) + updated_contents = b"\n".join(lines) + b"\n" if updated_contents != contents: with open(filename, "wb") as out_file: