Пример #1
0
        public void VisitSegment(ISegment segment)
        {
            if (ShouldSkip(segment)) { return; }

            VisitChildren(segment);

            ProcessTags();

            // Merge all adjacent IText
            ITextMerger merger = new ITextMerger();
            merger.VisitSegment(segment);
            merger.Merge();
        }
        public void VisitSegment(ISegment segment)
        {
            VisitChildren(segment);

            ProcessPlaceholderTags();

            ProcessTagPairs();

            // Merge all adjacent IText
            ITextMerger merger = new ITextMerger();

            merger.VisitSegment(segment);
            merger.Merge();
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="EmailTemplatesInFileRepository" /> class.
 /// </summary>
 /// <param name="textMerger">The text merger.</param>
 public EmailTemplatesInFileRepository(ITextMerger textMerger)
 {
     _textMerger = textMerger;
 }