From b5bea66b3fb914b46dffa854ad837a5754dfe91a Mon Sep 17 00:00:00 2001 From: Eduardo Almeida Date: Sat, 28 Sep 2024 15:40:42 +0100 Subject: [PATCH] doc: Fix code block rendering due to excessive indentation --- doc/contributing/source/coding-style.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/contributing/source/coding-style.rst b/doc/contributing/source/coding-style.rst index 726ef2ca1..6ce4f5eef 100644 --- a/doc/contributing/source/coding-style.rst +++ b/doc/contributing/source/coding-style.rst @@ -99,22 +99,22 @@ To fix the formatting of files with Git, run the following commands in the |ns3| These commands do not change past commits. Instead, the reformatted files are left in the workspace. These changes should be squashed to the corresponding commits, in order to fix them. - .. sourcecode:: console +.. sourcecode:: console - # Fix all commits of the current branch, relative to the master branch - git clang-format master + # Fix all commits of the current branch, relative to the master branch + git clang-format master - # Fix all staged changes (i.e., changes that have been `git add`ed): - git clang-format + # Fix all staged changes (i.e., changes that have been `git add`ed): + git clang-format - # Fix all changes staged and unstaged: - git clang-format -f + # Fix all changes staged and unstaged: + git clang-format -f - # Fix specific files: - git clang-format path_to_file + # Fix specific files: + git clang-format path_to_file - # Check what formatting changes are needed (if no files provided, check all staged files): - git clang-format --diff + # Check what formatting changes are needed (if no files provided, check all staged files): + git clang-format --diff Note that this only fixes formatting issues related to clang-format. For other |ns3| coding style guidelines, read the ``check-style-clang-format.py`` section below.