anchor.diff:  
         lastSpaceCount = spaceCount
   
  -      if (unitNo == 0) then
  -        templatefile = trim(templatefile) // outputLine
  -      else
  -        write(unitNo, AFORMAT) outputLine
  +      if (.not. trim(closeTag) == '') then
  +        if (unitNo == 0) then
  +          templatefile = trim(templatefile) // outputLine
  +        else
  +          write(unitNo, AFORMAT) outputLine
  +        endif
         endif
       end do
       close(templater)
  
positive.code: 
        ! determine close tag, ahead of time
        closeTag = tag
        if (index(closeTag, '(') > 0) then
          closeTag = closeTag(1 : index(closeTag, '(') - 1)
        endif
  
        outputLine = ''
  
negative.code:           tag = 'div'
            elemID = spaceless(2: index(spaceless, ' ') - 1)
            if (index(elemID, '(') > 0) then
              tag = trim(tag) // elemID( index(elemID, '(') : index(elemID, ')'))
              elemID = elemID(1 : index(elemID, '#') - 1)
            endif
            if (index(elemID, '.') > 0) then
  