plcopen/plcopen.py
changeset 633 3536f4469cde
parent 630 9d7e38e271cb
child 687 629680fb0582
--- a/plcopen/plcopen.py	Wed Jan 25 01:26:29 2012 +0100
+++ b/plcopen/plcopen.py	Mon Jan 30 16:12:19 2012 +0100
@@ -433,13 +433,8 @@
     def AddCustomBlockType(self, pou): 
         pou_name = pou.getname()
         pou_type = pou.getpouType()
-        pou_description = pou.getdescription()
-        if pou_description != "":
-            pou_comment = "%s\n%s" % (pou_name, pou_description)
-        else:
-            pou_comment = pou_name
         block_infos = {"name" : pou_name, "type" : pou_type, "extensible" : False,
-                       "inputs" : [], "outputs" : [], "comment" : pou_comment,
+                       "inputs" : [], "outputs" : [], "comment" : pou.getdescription(),
                        "generate" : generate_block, "initialise" : initialise_block}
         if pou.getinterface():
             return_type = pou.interface.getreturnType()