Esempio n. 1
0
        protected string WriteBody(bool bIntroOnly)
        {
            try
            {
                int    indentLevel = 1;
                string indentStr   = GetIndentStr(indentLevel);

                string htmlStr = "";
                htmlStr += "<body>\n";
                htmlStr += WriteIntroData(bIntroOnly);
                if (!bIntroOnly)
                {
                    htmlStr += ExpandUnitsContent(m_TextWork.GetUnit());
                    htmlStr += WriteBibliography();
                }
                htmlStr += string.Format("<p class=\"footer\">Pubblicato con Lettera22 versione {0}</p>\n", Globals.SoftwareVersion());
                htmlStr += "</body>\n";
                return(htmlStr);
            }
            catch (Exception ex)
            {
                Globals.m_Logger.Error(ex.ToString());
                return("");
            }
        }