Bml fix snippet parsing

Fixed snippet formatting/creation, no more double whitespaces between divs and no more random words getting combined.