gala-ragdoll/0001-fix-text-file-sync-bug.patch
2023-11-08 08:49:02 +08:00

29 lines
910 B
Diff

From 4f0811635664dcc34d8f556d17bb63b5c72ed1a9 Mon Sep 17 00:00:00 2001
From: smjiao <smjiao@isoftstone.com>
Date: Tue, 7 Nov 2023 18:26:49 +0800
Subject: [PATCH] fix text file sync bug
---
ragdoll/config_model/text_config.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ragdoll/config_model/text_config.py b/ragdoll/config_model/text_config.py
index 98d8fd1..dadd915 100644
--- a/ragdoll/config_model/text_config.py
+++ b/ragdoll/config_model/text_config.py
@@ -41,6 +41,8 @@ class TextConfig(BaseHandlerConfig):
def write_conf(self):
content = ""
- for conf_list in self.conf:
- content += '\t'.join(conf_list) + '\n'
+ for value in self.conf:
+ if value is not None:
+ content = content + value + "\n"
+ content = content + '\n'
return content
\ No newline at end of file
--
2.38.1.windows.1