add subline count,use `-` for closing node