anchor.diff:          rest = ''
           print >>f, "%s" % doc[1]
   
  -
       print >>f, ".SH SYNOPSIS"
  +    print >>f, ".HP"
  +    print >>f, ".HP"
       if rest:
           print >>f, rest
       else:
  -        print >>f, ".HP"
  +        rest = ''
  +        print >>f, "%s" % doc[1]
  +
  +    print >>f, ".SH USAGE SYNOPSIS"
  +    print >>f, ".HP"
  +    print >>f, ".HP"
  +
  +    if rest:
  +        print >>f, rest
  +        print >>f, ".HP"
  +    else:
           print >>f, ".B loadrt %s " % comp_name
  -	print >>f, ".LP"        
  +	print >>f, ".LP"
           print >>f, ".B newinst %s <newinstname> [ pincount=\\fIN\\fB | iprefix=\\fIprefix\\fB ]" % comp_name
           print >>f, ".B                             [instanceparamX=\\fIX\\fB | argX=\\fIX\\fB ]"
  -        print >>f, ".HP"        
  +        print >>f, ".HP"
           for type, name, default, doc in modparams:
               print >>f, "[%s=\\fIN\\fB]" % name,
           print >>f
  
positive.code: ###############################  rtapi_app_exit()  #####################################################
  
      print >>f, "void rtapi_app_exit(void)\n{"
      
      print >>f, "    hal_exit(comp_id);"
      print >>f, "}\n"
  
  
negative.code: 
      print >>f, ".TH %s \"9\" \"%s\" \"Machinekit Documentation\" \"HAL Component\"" % (comp_name.upper(), time.strftime("%F"))
      print >>f, ".de TQ\n.br\n.ns\n.TP \\\\$1\n..\n"
  
      print >>f, ".SH INSTANTIABLE COMPONENTS"
      print >>f, ".HP"
      print >>f, ".HP"
      print >>f, ".B All instantiable components can be loaded in two manners\n"
      print >>f, ".LP"
      print >>f, ".B Using loadrt with or without count= | names= parameters as per legacy components\n"
      print >>f, ".LP"
      print >>f, ".B Using newinst, which names the instance and allows further parameters and arguments,\n"
      print >>f, ".LP"
      print >>f, ".B primarily pincount= which can set the number of pins created for that instance (where applicable)\n"
      print >>f, ".HP"
  
      print >>f, ".RE"
      print >>f, ".SH NAME"
      print >>f, ".HP"
      print >>f, ".HP"
      doc = finddoc('component')
      if doc and doc[2]:
          if '\n' in doc[2]:
  