  
      def _get_span_starts(self, entities: List[Dict]) -> str:
          """Get the rendered markup of all Span start tokens"""
          span_starts = []
          for entity, step in zip(entities, itertools.count(step=self.offset_step)):
              color = self.colors.get(entity["label"].upper(), self.default_color)
              span_start = (
                  self.span_start_template.format(
                      bg=color,
                      top_offset=self.top_offset + step,
 
</s> remove         for entity, step in zip(entities, itertools.count(step=self.offset_step)):
 </s> add         for entity in entities:
            # rather than iterate over multiples of offset_step, we use entity['render_slot']
            # to determine the vertical position, since that tells where
            # the span starts vertically so we can extend it horizontally,
            # past other spans that might have already ended </s> remove                 bg=color, top_offset=self.top_offset + step
 </s> add                 bg=color,
                top_offset=top_offset, </s> remove                     top_offset=self.top_offset + step,
 </s> add                     top_offset=top_offset,
        for entity in entities:
  
      def _get_span_starts(self, entities: List[Dict]) -> str:
          """Get the rendered markup of all Span start tokens"""
          span_starts = []
        for entity in entities:
              color = self.colors.get(entity["label"].upper(), self.default_color)
              span_start = (
                  self.span_start_template.format(
                      bg=color,
                      top_offset=self.top_offset + step,
keep keep keep keep replace keep keep keep keep keep
 displaCy Spans Vertical Alignment Fix 2 (#11092)

* add in span render slot fix

* fix spacing off by one

* rm demo

* adjust comments

* fix whitespace and overlap issue 
spacy/displacy/render.py