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

Fixing style

parent 88653d44
......@@ -145,15 +145,15 @@ class Meso(Directive):
self.state.nested_parse(self.content, self.content_offset, node)
if( 'fulldescription' in node ):
if( node['fulldescription'] is not None ):
phrase=node[ 'fulldescription'].split(".")
node['shortdescription'] = phrase[0]+'.'
if ( len(phrase) > 1 ):
if 'fulldescription' in node:
if node['fulldescription'] is not None:
phrase = node[ 'fulldescription'].split(".")
node['shortdescription'] = phrase[0] + '.'
if len(phrase) > 1:
node['fulldescription'] = ''
for p in phrase[1:]:
if (p.strip()):
node['fulldescription'] = node['fulldescription']+p+'.'
if p.strip():
node['fulldescription'] = node['fulldescription'] + p + '.'
return [node]
......@@ -201,6 +201,7 @@ class Cluster(Directive):
return [node]
class ClusterStorageList(Directive):
required_arguments = 0
optional_arguments = 0
......@@ -215,6 +216,7 @@ class ClusterStorageList(Directive):
return [node]
class ClusterStorage(Directive):
required_arguments = 0
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