/// <summary>
        /// Indents all lines apart from the first one since it is assumed
        /// that the first line had the correct indentation.
        /// </summary>
        void IndentReplacedText(string text)
        {
            int lineCount = GetLineCount(text);

            if (lineCount > 1)
            {
                documentView.IndentLines(Line + 1, Line + lineCount);
            }
        }