public BibliographyRangeFormatter(BibliographyResult bibliographyResult)
		{
			this.bibliographyResult = bibliographyResult;

			var sb = new StringBuilder();

			foreach(var entry in bibliographyResult.Entries)
			{
				if (entry.StartsWith("---"))
				{
/*
					var x = entry.Substring(3);
					if (x.StartsWith(".")) x = x.Substring(1);
					x = x.TrimStart();
					sb[sb.Length - 1] = '\b';
					sb.Append(x);
					continue;
*/
				}

				//sb.Append(entry);
				sb.Append(entry.Replace("\n\n", "\n"));
			}

			bibliographyHtml = sb.ToString();

			bibliographyHtml = HtmlHelper.EncodeHighChars(bibliographyHtml);

		}
Example #2
0
        public BibliographyRangeFormatter(BibliographyResult bibliographyResult)
        {
            this.bibliographyResult = bibliographyResult;

            var sb = new StringBuilder();

            foreach (var entry in bibliographyResult.Entries)
            {
                if (entry.StartsWith("---"))
                {
/*
 *                                      var x = entry.Substring(3);
 *                                      if (x.StartsWith(".")) x = x.Substring(1);
 *                                      x = x.TrimStart();
 *                                      sb[sb.Length - 1] = '\b';
 *                                      sb.Append(x);
 *                                      continue;
 */
                }

                //sb.Append(entry);
                sb.Append(entry.Replace("\n\n", "\n"));
            }

            bibliographyHtml = sb.ToString();

            bibliographyHtml = HtmlHelper.EncodeHighChars(bibliographyHtml);
        }