class_docstr: For producing HTML side by side comparison with change highlights.
  
  This class can be used to create an HTML table (or a complete HTML file
  containing the table) showing a side by side, line by line comparison
  of text with inter-line and intra-line change highlights.  The table can
  be generated in either full or contextual difference mode.
  
  The following methods are provided for HTML generation:
  
  make_table -- generates HTML for a single side by side table
  make_file -- generates complete HTML file with a single side by side table
  
  See tools/scripts/diff.py for an example usage of this class.
docstr: Returns iterator that splits (wraps) mdiff text lines
docstr_tok: ["Returns","iterator","that","splits","(","wraps",")","mdiff","text","lines"]
code: def _line_wrapper(self, diffs):
      """Returns iterator that splits (wraps) mdiff text lines"""
  
      # pull from/to data and flags from mdiff iterator
      for fromdata, todata, flag in diffs:
          # check for context separators and pass them through
          if flag is None:
              yield fromdata, todata, flag
              continue
          (fromline, fromtext), (toline, totext) = fromdata, todata
          # for each from/to line split it at the wrap column to form
          # list of text lines.
          fromlist, tolist = [], []
          self._split_line(fromlist, fromline, fromtext)
          self._split_line(tolist, toline, totext)
          # yield from/to line in pairs inserting blank lines as
          # necessary when one side has more wrapped lines
          while fromlist or tolist:
              if fromlist:
                  fromdata = fromlist.pop(0)
              else:
                  fromdata = ("", " ")
              if tolist:
                  todata = tolist.pop(0)
              else:
                  todata = ("", " ")
              yield fromdata, todata, flag
  
imports: from heapq import nlargest
  from collections import namedtuple
  from types import GenericAlias
  import re
label_desc: Use image node_id 5 for calling the HtmlDiff obj's underlying member method code with example usage: obj._line_wrapper(diffs) without return types