Current line gap system has tendency of creating gaps too aggressively, sometimes removing a line segment completely.
In the above case, result would be more readable, if we retain short vertical lines at the segment ends.