Объективка md: каждый параметр с новой строки, образование в блоке
This commit is contained in:
1 parent
a16ef9add5
commit
ec2c7663e5
4 files changed
+24
-10
No files matched your search
+19
-8
@@ -69,25 +69,36 @@ WORK = [
|
||||
|
||||
def build_md():
|
||||
lines = []
|
||||
lines.append(f"# СПРАВКА\n")
|
||||
lines.append(f"## {FIO}\n")
|
||||
lines.append('<img src="dca7a868-65c0-422e-be26-06a5f2564cca.jfif" alt="Фото" width="120">\n')
|
||||
lines.append(f"**Должность:** {POSITION}\n")
|
||||
lines.append("# СПРАВКА")
|
||||
lines.append("")
|
||||
lines.append(f"## {FIO}")
|
||||
lines.append("")
|
||||
lines.append('<img src="dca7a868-65c0-422e-be26-06a5f2564cca.jfif" alt="Фото" width="120">')
|
||||
lines.append("")
|
||||
lines.append(f"**Должность:** {POSITION}")
|
||||
lines.append("")
|
||||
lines.append(f"**Дата рождения:** {BIRTH_DATE}")
|
||||
lines.append("")
|
||||
lines.append(f"**Место рождения:** {BIRTH_PLACE}")
|
||||
lines.append(f"**Место жительства:** {RESIDENCE}\n")
|
||||
lines.append("")
|
||||
lines.append(f"**Место жительства:** {RESIDENCE}")
|
||||
lines.append("")
|
||||
lines.append("**Образование:** высшее:")
|
||||
for e in EDUCATION:
|
||||
lines.append(f"- {e}")
|
||||
lines.append("")
|
||||
lines.append(f"**Учёная степень:** {DEGREE}\n")
|
||||
lines.append(f"**Учёная степень:** {DEGREE}")
|
||||
lines.append("")
|
||||
lines.append("**Награды, поощрения:**")
|
||||
for i, a in enumerate(AWARDS, 1):
|
||||
lines.append(f"{i}. {a}")
|
||||
lines.append("")
|
||||
lines.append(f"**Партийная принадлежность:** {PARTY}")
|
||||
lines.append(f"**Семейное положение:** {FAMILY}\n")
|
||||
lines.append("## Трудовая деятельность\n")
|
||||
lines.append("")
|
||||
lines.append(f"**Семейное положение:** {FAMILY}")
|
||||
lines.append("")
|
||||
lines.append("## Трудовая деятельность")
|
||||
lines.append("")
|
||||
for period, pos in WORK:
|
||||
lines.append(f"- **{period}** — {pos}")
|
||||
with open(MD_OUT, "w", encoding="utf-8") as f:
|
||||
|
||||
Reference in new issue
Block a user