diff --git a/tools/oneclick/base/hdl_config.py b/tools/oneclick/base/hdl_config.py
index 03fbf08391dfab094685ebfe4d88416421ab084b..5f713cff48fcf76bc7a9649c6277c392a5a45c90 100644
--- a/tools/oneclick/base/hdl_config.py
+++ b/tools/oneclick/base/hdl_config.py
@@ -152,7 +152,7 @@ class HdlConfig:
             filePathName = os.path.join(file_path, file_name)
             with open(filePathName, 'w') as fp:
                 for lib in lib_order:
-                    fp.write('%s\n' % lib)
+                    fp.write('%s ' % lib)
 
 if __name__ == '__main__':
     # Read the dictionary info from all HDL tool and library configuration files in the current directory and the sub directories