Commits

Geoffrey Sneddon  committed 3f6f451

Fix similar bug as in 10e6f1b47c49.

  • Participants
  • Parent commits f652602

Comments (0)

Files changed (1)

File specGen/processes/sub.py

 				in_link = True
 				link = etree.Element("a")
 				link.text = node.tail
-				node.tail = None
 				node.addnext(link)
 				to_remove.add(node)
 		
 						node.addprevious(etree.Comment(begin_sub))
 						node.addprevious(deepcopy(eval(basic_comment_sub)))
 						node.addprevious(etree.Comment(end_sub))
+						node.getprevious().tail = node.tail
 						to_remove.add(node)
 		
 		# Remove nodes