Skip to content

Commit fb972c8

Browse files
committed
doc
1 parent ac7b51f commit fb972c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/nexus/handlers/tree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ def rooted(self):
2727

2828
@property
2929
def newick_string(self):
30+
# Find the string up to the first "(" which is not inside a comment ...
3031
prefix = split_text_with_context(self, separators='(', brackets={'[': ']'})[0]
32+
# ... the remainder of the line should be the newick representation of the tree:
3133
return self[len(prefix):].strip()
3234

3335
@property

0 commit comments

Comments
 (0)