private bool ContainsNonTopLevelTaskAttributes(TaskList tasks) { for (int depth = 2; depth < 10; depth++) { if (HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks, depth)) { return(true); } } return(HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks, 0)); // leaf tasks }
public bool ContainsTaskAttributes(TaskList tasks) { // Must only contain '$(title)' or '$(title.1)' return(HtmlReportUtils.ContentContainsTaskAttributePlaceholders(Text, tasks) && !ContainsNonTopLevelTaskAttributes(tasks)); }