public override string GetDocFormat()
        {
            string text = "<sc\n";

            for (int i = 0; i < Lines.Count; i++)
            {
                if (SubParagraphs.ContainsKey(i))
                {
                    text += "\n" + SubParagraphs[i].GetDocFormat();
                }

                text += "\n" + Lines[i].GetDocFormat();
            }

            if (SubParagraphs.ContainsKey(Lines.Count))
            {
                text += "\n" + SubParagraphs[Lines.Count].GetDocFormat();
            }

            text += "\n" + "/>";

            List <string> textLines = text.Split(new char[] { '\n' }).ToList();

            int indent = 1;

            text = "<sc";

            for (int i = 1; i < textLines.Count; i++)
            {
                string currentLine = textLines[i].Trim();
                text += "\n" + Configuration.getTabSpace(indent) + currentLine;

                if (currentLine.Contains("<"))
                {
                    indent++;
                }

                if (currentLine.Contains(">"))
                {
                    indent--;
                }
            }

            return(text);
        }
        public override string GetDocFormat()
        {
            string text = "<pa\n";

            for (int i = 0; i < Lines.Count; i++)
            {
                if (SubParagraphs.ContainsKey(i))
                {
                    text += "\n" + SubParagraphs[i].GetDocFormat();
                }

                text += "\n" + Lines[i].GetDocFormat();
            }

            if (SubParagraphs.ContainsKey(Lines.Count))
            {
                text += "\n" + SubParagraphs[Lines.Count].GetDocFormat();
            }

            text += "\n" + "/>";

            return(text);
        }