NVDA List Item Count Issue

Issue:

The list below has 4 list items. NVDA reports 7 list items, because it's counting the whitespace between the <li> elements in the source code when calculating the number of items. This seems to only happen when the list items are styled with display: inline;

Workaround 1

Below is the same list, now without any white space between the <li> elements. Eventhough the actual mark up has not changed, NVDA now correctly counts 4 items in the list.

Workaround 2

Below is the same list again, but this time the list items are not styled using display:inline;

Expected Behavior:

NVDA should correctly count the actual number of list items, regardless of the white space between them.