         if not section
             continue
         materials.push(parseSection(section, sectionId))
-        
+
     materials = await finalizeMaterialsList(materials)
-        
+
     mainPageMaterial = new Material
         _id: "main"
         order: 0

            hrefs.push(tag.href)
        else
            logger.error("Strange link in statements toc: " + tag.href + " " + href)
            
    return hrefs

parseStatements = (activity, order) ->

        logger.error("Found several tocs in statements " + href)
        return undefined
    toc = toc[0]

    hrefs = []
    tags = toc.getElementsByTagName("a")
    for tag in tags
