ITADN

Function is executed twice when placed exactly after where the text is wrapped

#10ClosedSheepolution 创建于 2024-07-26
S
Sheepolutioncommented
If a function is placed on the position where a newline is inserted, the function will be called twice. **How to reproduce** 1. Create a new SYSL-Text. 2. Write a text long enough for it to be wrapped. 3. Insert `[function=print('test')]` after the space of the last word before the text is wrapped. If `e` is the cutoff point (so `e` is the last character before the text wraps), then this is fine. `"a b c d e[function=print('test')] f g h"` But this will cause the function to be called twice. `"a b c d e [function=print('test')]f g h"`
关闭于 2024-08-03 2 条评论