You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// where the b tag is a rewriter and the emotion tag is not.
777
777
// in that case because previously we only kept the last fully processed non-replacement sibling the emotion tag would eat the whitespace AFTER the b tag had replaced itself
778
778
privateMarkupTreeNode?sibling=null;
779
+
779
780
// this keeps track of all accumulated invisible characters added by any replacement markup.
780
781
// this is necessary to prevent a bug with the following:
781
-
// "this is a line [bold]with some replacement[/bold] markup and a non-replacement[a/] markup"
782
+
// "this is a line [bold]with some replacement[/bold] markup and a non-replacement[a/] markup"
782
783
// assuming that this is intended to replace the [bold] with <b> in unity we would end up as though we had written:
783
-
// "this is a line <b>with some replacement</b> markup and a non-replacement[a/] markup"
784
+
// "this is a line <b>with some replacement</b> markup and a non-replacement[a/] markup"
784
785
// but this has now pushed the [a] markup down by 7 invisible characters
785
786
// so each replacement markup processor needs to let us know how many (if any) invisible characters there are so we can backshift any sibling attributes after a replacement markup
0 commit comments