Pull line editor out of contrib and into main.
This commit is contained in:
parent
eddb5dadf5
commit
89a39a8481
4 changed files with 20 additions and 10 deletions
|
|
@ -1257,3 +1257,10 @@ def m_len(target):
|
|||
if inherits_from(target, basestring):
|
||||
return len(ANSI_PARSER.strip_mxp(target))
|
||||
return len(target)
|
||||
|
||||
|
||||
def get_line_editor():
|
||||
"""
|
||||
Get the line editor for this game.
|
||||
"""
|
||||
return variable_from_module(*settings.LINE_EDITOR.rsplit('.', 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue