Skip to content

Commit e7f954b

Browse files
committed
Add tabs to SConstruct snippet
1 parent 92dcf8c commit e7f954b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tutorials/scripting/cpp/gdextension_docs_system.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ you need to add the following lines to your SConstruct file:
5959
.. code-block:: py
6060
6161
if env["target"] in ["editor", "template_debug"]:
62-
try:
63-
doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
64-
sources.append(doc_data)
65-
except AttributeError:
66-
print("Not including class reference as we're targeting a pre-4.3 baseline.")
62+
try:
63+
doc_data = env.GodotCPPDocData("src/gen/doc_data.gen.cpp", source=Glob("doc_classes/*.xml"))
64+
sources.append(doc_data)
65+
except AttributeError:
66+
print("Not including class reference as we're targeting a pre-4.3 baseline.")
6767
6868
The if-statement checks if we are compiling the GDExtension library with the ``editor`` and ``template_debug``
6969
flags. SCons then tries to load all the XML files inside the ``doc_classes`` directory and appends them

0 commit comments

Comments
 (0)