Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
4383eecd
Commit
4383eecd
authored
Jul 09, 2020
by
Maxime Perrotin
Browse files
Fix nesting check for states
parent
e979ddaa
Changes
1
Hide whitespace changes
Inline
Side-by-side
opengeode/sdlSymbols.py
View file @
4383eecd
...
...
@@ -981,8 +981,9 @@ class State(VerticalSymbol):
@
property
def
allow_nesting
(
self
):
''' Redefinition - must be checked according to context '''
# nesting permitted only if single plain state
result
=
not
any
(
elem
in
str
(
self
).
lower
().
strip
()
for
elem
in
(
'-'
,
','
,
'*'
))
for
elem
in
(
'-'
,
','
,
'*'
,
':'
,
'via'
))
return
result
@
property
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment