anchor.diff:  
         FIND ALL OCCURRENCES OF '<'  IN lv_line MATCH COUNT rs_result-openings.
         FIND ALL OCCURRENCES OF '</' IN lv_line MATCH COUNT rs_result-closings.
  -      FIND ALL OCCURRENCES OF REGEX go_single_tags_re IN lv_line MATCH COUNT rs_result-singles.
  +      IF rs_result-closings <> rs_result-openings.
  +* if everything is closings, there are no single tags
  +        FIND ALL OCCURRENCES OF REGEX go_single_tags_re IN lv_line MATCH COUNT rs_result-singles.
  +      ENDIF.
         rs_result-openings = rs_result-openings - rs_result-closings - rs_result-singles.
   
       ENDIF.
  
positive.code: 
  
  
  CLASS zcl_abapgit_html IMPLEMENTATION.
  
  
    METHOD checkbox.
  
negative.code: 
      CLASS-DATA go_single_tags_re TYPE REF TO cl_abap_regex .
      DATA mt_buffer TYPE string_table .
      CLASS-DATA gv_spaces TYPE string .
  
      METHODS indent_line
        CHANGING
  