Commit eb7a6bde authored by Roland Denis's avatar Roland Denis
Browse files

Fixing style

parent 88653d44
...@@ -145,15 +145,15 @@ class Meso(Directive): ...@@ -145,15 +145,15 @@ class Meso(Directive):
self.state.nested_parse(self.content, self.content_offset, node) self.state.nested_parse(self.content, self.content_offset, node)
if( 'fulldescription' in node ): if 'fulldescription' in node:
if( node['fulldescription'] is not None ): if node['fulldescription'] is not None:
phrase=node[ 'fulldescription'].split(".") phrase = node[ 'fulldescription'].split(".")
node['shortdescription'] = phrase[0]+'.' node['shortdescription'] = phrase[0] + '.'
if ( len(phrase) > 1 ): if len(phrase) > 1:
node['fulldescription'] = '' node['fulldescription'] = ''
for p in phrase[1:]: for p in phrase[1:]:
if (p.strip()): if p.strip():
node['fulldescription'] = node['fulldescription']+p+'.' node['fulldescription'] = node['fulldescription'] + p + '.'
return [node] return [node]
...@@ -201,6 +201,7 @@ class Cluster(Directive): ...@@ -201,6 +201,7 @@ class Cluster(Directive):
return [node] return [node]
class ClusterStorageList(Directive): class ClusterStorageList(Directive):
required_arguments = 0 required_arguments = 0
optional_arguments = 0 optional_arguments = 0
...@@ -215,6 +216,7 @@ class ClusterStorageList(Directive): ...@@ -215,6 +216,7 @@ class ClusterStorageList(Directive):
return [node] return [node]
class ClusterStorage(Directive): class ClusterStorage(Directive):
required_arguments = 0 required_arguments = 0
optional_arguments = 1 optional_arguments = 1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment