From bd49bc0f5998f2451a3751d158484874e28c421c Mon Sep 17 00:00:00 2001
From: Victor Poughon <victor.poughon@cnes.fr>
Date: Tue, 11 Dec 2018 12:03:08 +0100
Subject: [PATCH] DOC: fix default value formatting

---
 Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
index cdab55a9c1..a80fba0023 100755
--- a/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
+++ b/Documentation/Cookbook/Scripts/otbGenerateWrappersRstDoc.py
@@ -231,7 +231,7 @@ def rst_parameter_flags(app, key):
     if app.IsMandatory(key) and not app.HasValue(key):
         return "*Mandatory* "
     elif app.HasValue(key) and app.GetParameterType(key) != ParameterType_Group:
-        return "*Default value: {}* ".format(app.GetParameterValue(key))
+        return "*Default value: {}* ".format(app.GetParameterAsString(key)) # get value as string to use the same formatting as the c++ api
     else:
         return ""
 
-- 
GitLab