From ce0d5734c322493776ad838adf65a8e8b054bf80 Mon Sep 17 00:00:00 2001 From: Martyn Gigg <martyn.gigg@stfc.ac.uk> Date: Wed, 28 May 2014 16:55:11 +0100 Subject: [PATCH] Fix property descriptions that span multiple lines Simply replaces the new line with a space and lets the output formatter take care of displaying it. Refs #9521 --- Code/Mantid/docs/sphinxext/mantiddoc/directives/properties.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Mantid/docs/sphinxext/mantiddoc/directives/properties.py b/Code/Mantid/docs/sphinxext/mantiddoc/directives/properties.py index 3eb955bffc7..0f6177b0ed2 100644 --- a/Code/Mantid/docs/sphinxext/mantiddoc/directives/properties.py +++ b/Code/Mantid/docs/sphinxext/mantiddoc/directives/properties.py @@ -40,7 +40,7 @@ class PropertiesDirective(BaseDirective): str(direction_string[prop.direction]), str(prop.type), str(self._get_default_prop(prop)), - str(prop.documentation) + str(prop.documentation.replace("\n", " ")) )) # Build and add the properties to the ReST table. -- GitLab