Added a functioning version of nested inline funcs. Still poor error handling and some edge cases are not handled.
This commit is contained in:
parent
5d3df584bf
commit
641846e855
3 changed files with 279 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ from django.conf import settings
|
|||
from evennia.comms.models import ChannelDB
|
||||
from evennia.utils import logger
|
||||
from evennia.utils.inlinefunc import parse_inlinefunc
|
||||
from evennia.utils.nested_inlinefuncs import parse_inlinefunc as parse_nested_inlinefunc
|
||||
from evennia.utils.utils import make_iter, lazy_property
|
||||
from evennia.commands.cmdhandler import cmdhandler
|
||||
from evennia.commands.cmdsethandler import CmdSetHandler
|
||||
|
|
@ -389,6 +390,7 @@ class ServerSession(Session):
|
|||
text = text if text else ""
|
||||
if _INLINEFUNC_ENABLED and not "raw" in kwargs:
|
||||
text = parse_inlinefunc(text, strip="strip_inlinefunc" in kwargs, session=self)
|
||||
text = parse_nested_inlinefunc(text, strip="strip_inlinefunc" in kwargs, session=self)
|
||||
if self.screenreader:
|
||||
global _ANSI
|
||||
if not _ANSI:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue