Q:

Why is wordpress outputting menu html with no space between  tags

I'm using display:inline-block; and text-align:justify; to centre my main navigation. The new wordpress 4.4 update seems to be outputting html with no white space between the main <li> tags. Has anyone else found this and how to stop it?
E.g. one of my sites - http://melodywheels.com.au - I've hacked it for now to get the menu centred but it was working much better before wordpress changed the output.
Instead of outputting
<ul>
<li>Menu item</li>
<li>Menu item</li>
<li>Menu item</li>
</ul>

it is outputting
<ul>
<li>Menu item</li></li>Menu Item</li><li>Menu item</li>
</ul>

Which obviously messes with the whole inline-block justified menu.
I can't see anyway to change this and searching online only seems to bring up responses for doing the opposite - removing white space between inline-block items.
Thanks!
FIX
Add this to your functions.php file
// Fix stupid wordpress 4.4 'feature' that breaks justified menus

add_filter('wp_nav_menu_items', 'filter_menu_items');
function filter_menu_items($menu_items){
  return str_replace('</li><li', "</li> <li", $menu_items);
}

A:

Found the solution with Dave Bloom's help.
https://wordpress.org/support/topic/wordpress-44-update-breaks-wp_nav_menu-layout

