[MenuTree] fixed submenu with line endings