Previously, the calculated duration (e.g. "2 years 3 months") was only
ever appended to the DATE placeholder's value, joined by two newlines,
with no way for a custom entry template to access it on its own. This
made it impossible to position the time span independently in a custom
layout (see rendercv#547).
process_date now returns (date_string, time_span_string) instead of a
single pre-concatenated string. DATE keeps its exact existing value for
full backward compatibility with themes that only ever used DATE; when
show_time_span is true, TIME_SPAN is also added to entry_fields so
custom templates can reference it directly.
Summary
Closes #547.
Previously, the calculated duration (e.g. "2 years 3 months") was only ever appended to the DATE placeholder's value, joined by two newlines, with no way for a custom entry template to access it on its own. This made it impossible to position the time span independently in a custom layout, which is exactly what was reported in #547.
process_date now returns (date_string, time_span_string) instead of a single pre-concatenated string. DATE keeps its exact existing value for full backward compatibility with themes that only ever used DATE; when show_time_span is true, TIME_SPAN is also added to entry_fields so custom templates can reference it directly.
Changes
Testing
Note
This is my first PR to this project. I set up the dev environment via the developer guide and worked through this with Claude Code, per the suggestion in #672.