public void OnText(TextBlockInfo info)
        {
            if (info.ChangeType != ChangeType.None)
            {
                _seenChange = true;
                return;
            }

            if (Utils.IsInOriginalDocument(info.ChangeType))
            {
                if (_seenChange)
                    bldAfter.Append(info.Text);
                else
                    bldBefore.Append(info.Text);

            }
        }
 public void OnText(TextBlockInfo info)
 {
     string text = FixBoxChars(info.Text);
     if (string.IsNullOrEmpty(text))
         return;
     if (info.ChangeType == ChangeType.None)
     {
         Run r = BuildRun(text);
         r.Foreground = Brushes.Black;
         AddItem(info.RTL, r);
         ApplyHighlight(ChangeType.None, info.Highlight || info.InComment, r);
     }
     else
     {
         m_currentHighlight = GetHighlight(info.ChangeType);
         Inline r = BuildRun(BuildTaggedString(text));
         r = BuildDecoratedVersion(r);
         r.Tag = ChangeTag;
         r.FontFamily = GetFont(info.Font);
         AddItem(info.RTL, r);
         r.Foreground = m_currentHighlight.ForegroundBrush;
         r.Background = m_currentHighlight.BackgroundBrush;
         ApplyHighlight(info.ChangeType, info.Highlight, r);
     }
 }