# All files in the 'lib' directory will be loaded # before nanoc starts compiling. # repair cutted XML code by closing the tags # work even if the XML is cut into a tag. # example: # transform '
toto

hello ' + depth.to_s # puts 'parents='+parents.join('; ') else depth-=1 # puts '<'+m[0]+m[1]+'> ' + depth.to_s end end res=html.sub(/<[^>]*$/m,'') depth-=1 depth.downto(0).each { |x| res<<= %{} } res end