cinsert() doesn't respect inserted new lines
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mudlet |
Invalid
|
High
|
Vadim Peretokin |
Bug Description
See test script:
echo("\nTEST PART1: C-API echo & insert functions: <blue>STARTING<
echo("<red>red text<blue>blue text<green>and some green text\n")
moveCursor(
insertText(
cecho("\nTEST PART2: mudlet-lua cecho & cinsert:
cecho("<red>red text<blue>blue text<green>and some green text\n")
moveCursor(
cinsertText(
echo("\nRESULT: cinsert() doesn't respect inserted new lines\n")
description: | updated |
Changed in mudlet: | |
status: | Confirmed → In Progress |
The issue seems to be that it was used in a non-trigger context. insertText() on its own doesn't handle it very well, inserting boxes instead of newlines when used as such.
When used within a trigger context, both insertText and cinertText behave the same, with the exception of cinsertText() adding its value. See screenshot.