File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -561,7 +561,11 @@ def create_description(tool, model):
561561 """
562562 if "description" in model .opt_attribs .keys () and model .opt_attribs ["description" ] is not None :
563563 description = SubElement (tool , "description" )
564- description .text = model .opt_attribs ["description" ]
564+ text = model .opt_attribs ["description" ]
565+ text = text .split ("\n " )[0 ].strip ()
566+ if text [- 1 ] == "." :
567+ text = text [:- 1 ]
568+ description .text = text
565569
566570
567571def create_configfiles (tool , model , ** kwargs ):
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" UTF-8" ?>
22<tool ctdVersion =" 1.7" version =" 2.3.0" name =" bool" docurl =" http://www.openms.de/unavailable.html" category =" Test" >
3- <description ><![CDATA[ Bool parameter tests]]> </description >
3+ <description ><![CDATA[ Bool parameter tests
4+
5+ Some additional text that must not appear in the Galaxy tool description.
6+ ]]> </description >
47<manual ><![CDATA[ Bool parameter tests.]]> </manual >
58<PARAMETERS version =" 1.6.2" xsi : noNamespaceSchemaLocation =" https://raw.githubusercontent.com/OpenMS/OpenMS/develop/share/OpenMS/SCHEMAS/Param_1_6_2.xsd" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" >
69 <NODE name =" BoolTest" description =" Bool test." >
You can’t perform that action at this time.
0 commit comments