{{/* if the expected line number does not match the actual line number end the ordered list and begin a new one */}} {{$expNum := 0}} {{range .SearchResult.Lines}} {{if and (gt $expNum 0) (ne .Num $expNum)}}
    {{end}}
  1. {{.FormattedContent}}
  2. {{$expNum = Eval .Num "+" 1}} {{end}}