public static String GetBulletText(ListTables listTables, Paragraph paragraph, int listId) { ListLevel listLevel = listTables.GetLevel(listId, paragraph.GetIlvl()); if (listLevel.GetNumberText() == null) return string.Empty; StringBuilder bulletBuffer = new StringBuilder(); char[] xst = listLevel.GetNumberText().ToCharArray(); foreach (char element in xst) { if (element < 9)//todo:review_antony { ListLevel numLevel = listTables.GetLevel(listId, element); int num = numLevel.GetStartAt(); bulletBuffer.Append(NumberFormatter.GetNumber(num, listLevel.GetNumberFormat())); if (numLevel == listLevel) { numLevel.SetStartAt(numLevel.GetStartAt() + 1); } } else { bulletBuffer.Append(element); } } byte follow = listLevel.GetTypeOfCharFollowingTheNumber(); switch (follow) { case 0: bulletBuffer.Append("\t"); break; case 1: bulletBuffer.Append(" "); break; default: break; } return bulletBuffer.ToString(); }