Esempio n. 1
0
        private void OutputLastWhitespace(char nextChar)
        {
            if (this.lineLength > 255 && this.autoNewLines)
            {
                if (this.lineLength > this.longestLineLength)
                {
                    this.longestLineLength = this.lineLength;
                }

                this.lineLength = 0;

                if (ParseSupport.FarEastNonHanguelChar(nextChar))
                {
                    this.output.Write(' ');
                    this.lineLength++;
                }
            }
            else
            {
                this.output.Write(' ');
                this.lineLength++;
            }

            this.textLineLength++;
            this.lastWhitespace = false;
        }
Esempio n. 2
0
        internal ITextSinkEx WriteText()
        {
            if (this.outputState != OutputState.OutsideTag)
            {
                this.WriteTagEnd();
            }

            this.allowWspBeforeFollowingTag = false;

            if (this.lastWhitespace)
            {
                InternalDebug.Assert(ParseSupport.FarEastNonHanguelChar('\x3000'));
                this.OutputLastWhitespace('\x3000');
            }

            this.fallback = this;
            return(this);
        }