diff --git a/refpolicy/support/segenxml.py b/refpolicy/support/segenxml.py
index ec8a4ce..c97edd2 100755
--- a/refpolicy/support/segenxml.py
+++ b/refpolicy/support/segenxml.py
@@ -191,8 +191,11 @@ def getModuleXML(file_name):
if len(temp_buf):
module_buf += temp_buf
else:
+ module_buf.append("\n")
+ module_buf.append("Summary is unspecified.\n")
+ module_buf.append("\n")
module_buf.append("\n")
- module_buf.append("Parameters unspecified.\n")
+ module_buf.append("Parameters are unspecified.\n")
module_buf.append("\n")
temp_buf = []
module_buf.append("\n")
@@ -200,7 +203,15 @@ def getModuleXML(file_name):
elif getParams(line,TEMPLATE):
module_buf.append("\n"\
% getParams(line,TEMPLATE)[0])
- module_buf += temp_buf
+ if len(temp_buf):
+ module_buf += temp_buf
+ else:
+ module_buf.append("\n")
+ module_buf.append("Summary is unspecified.\n")
+ module_buf.append("\n")
+ module_buf.append("\n")
+ module_buf.append("Parameters unspecified.\n")
+ module_buf.append("\n")
temp_buf = []
module_buf.append("\n")