diff --git a/generate.py b/generate.py index 0c60264..c8742d6 100755 --- a/generate.py +++ b/generate.py @@ -108,6 +108,7 @@ def get_author_str(authors): print(t) raise Exception() gidx += 1 + details = re.sub("

\n$", '', details) type_content['details'] = details contents.append(type_content) diff --git a/tmpl/cv-section.tmpl.md b/tmpl/cv-section.tmpl.md index 334f589..6fae797 100644 --- a/tmpl/cv-section.tmpl.md +++ b/tmpl/cv-section.tmpl.md @@ -1,3 +1,4 @@ + # ~{{name}}~ ~{ if name == "Education" }~ @@ -19,30 +20,68 @@ GPA: ~{{school.overallGPA}}~ ~{{ n.dates }}~. ~{- endfor }~ ~{ elif name.endswith("Experience") }~ -~{ for n in contents }~ -__~{{n.place}}~.__ ~{{n.title}}~. +
+ + ~{ for n in contents }~ +
+ +
+ +
+ ~{{n.location}}~ ~{ if n.advisor -}~ - | Advisor: ~{{n.advisor}}~ +| Advisor: ~{{n.advisor}}~ ~{ endif -}~ | ~{{n.dates}}~ ~{- if n.details -}~ ~{- for detail in n.details }~ + ~{{detail}}~ ~{- endfor }~ -~{- endif -}~ -~{ endfor }~ +~{ endif }~ + +
+
+
+ ~{ endfor }~ +
~{ elif name == "Publications" }~ -~{ for type in contents }~ -__~{{type['title']}}~.__ + +
+ + ~{ for type in contents }~ +
+ +
+ +
~{{type['details']}}~ -~{ endfor }~ +
+
+
+ ~{ endfor }~ +
~{ elif name == "Honors \\& Awards" or name == "Honors & Awards" }~ ~{- for award in contents }~ @@ -79,4 +118,3 @@ __~{{type['title']}}~.__ ~{ else }~ ~{{contents}}~ ~{ endif }~ -