TheHamkerCat 5 年之前
父节点
当前提交
7815a3c0c8
共有 1 个文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      wbb/core/sections.py

+ 2 - 2
wbb/core/sections.py

@@ -4,7 +4,7 @@ def section(
     text = f"**--{title}**--:\n" if underline else f"**{title}**:\n"
     for key, value in body.items():
         if not isinstance(value, list):
-            text += f"{' ' * indent}`→` **{key}:** `{value}`\n"
+            text += f"{' ' * indent}**{key.capitalize()}:** `{value}`\n"
         else:
-            text += f"{' ' * indent}`→` **{key}:** {value[0]}\n"
+            text += f"{' ' * indent}**{key.capitalize()}:** {value[0]}\n"
     return text