From d279a8e60740e744f45e1166ebcafd5d37afd188 Mon Sep 17 00:00:00 2001 From: jonpas Date: Mon, 1 May 2023 17:38:27 +0200 Subject: [PATCH] Documentation - Cleanup function documentation output --- addons/tagging/functions/fnc_addCustomTag.sqf | 2 +- addons/tagging/functions/fnc_tag.sqf | 2 +- docs/tools/document_functions.py | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/addons/tagging/functions/fnc_addCustomTag.sqf b/addons/tagging/functions/fnc_addCustomTag.sqf index 84a407e2dd..cd1aae44f8 100644 --- a/addons/tagging/functions/fnc_addCustomTag.sqf +++ b/addons/tagging/functions/fnc_addCustomTag.sqf @@ -13,7 +13,7 @@ * 6: Tag Model (default: "UserTexture1m_F") * * Return Value: - * Sucessfully Added Tag + * Successfully Added Tag * * Example: * ["ace_victoryRed", "Victory Red", "ACE_SpraypaintRed", ["path\to\texture1.paa", "path\to\texture2.paa"], "path\to\icon.paa"] call ace_tagging_fnc_addCustomTag diff --git a/addons/tagging/functions/fnc_tag.sqf b/addons/tagging/functions/fnc_tag.sqf index 5544a50f69..67345e540f 100644 --- a/addons/tagging/functions/fnc_tag.sqf +++ b/addons/tagging/functions/fnc_tag.sqf @@ -10,7 +10,7 @@ * 3: Tag Model (default: "UserTexture1m_F") * * Return Value: - * Sucess + * Success * * Example: * success = [player, "z\ace\addons\tagging\UI\tags\black\0.paa"] call ace_tagging_fnc_tag diff --git a/docs/tools/document_functions.py b/docs/tools/document_functions.py index 5febaae446..f91c237090 100644 --- a/docs/tools/document_functions.py +++ b/docs/tools/document_functions.py @@ -334,8 +334,9 @@ def crawl_dir(addons_dir, directory, debug=False, lint_private=False): else: errors += 1 - print() - errors += document_functions(addons_dir, components) + if not debug: + print() + errors += document_functions(addons_dir, components) if errors != 0: print("\n Unclean!\n {} errors".format(errors))