fix #44, fix endLine initial problem when these is only one line and one link tag