/// <summary> /// Gets the white spaces as HTML. /// </summary> /// <param name="whiteSpace">The white space.</param> /// <returns></returns> public string GetWhiteSpacesAsHtml(WhiteSpace whiteSpace) { string html = ""; int count = 0; try { if (whiteSpace.Count != null) count = Convert.ToInt32(whiteSpace.Count); for(int i=0; i<count; i++) html += " "; } catch(Exception ex) { //send warning if (OnWarning != null) { AODLWarning warning = new AODLWarning("Exception while trying to build HTML whitespaces.", ex); //warning.InMethod = AODLException.GetExceptionSourceInfo(new StackFrame(1, true)); //warning.OriginalException = ex; OnWarning(warning); } } return html; }