Commit 20f0f76
committed
Fix copyright date with SOURCE_DATE_EPOCH set
When `SOURCE_DATE_EPOCH` is set, then Sphinx will attempt to 'fix' the
year in the copyright:
sphinx-doc/sphinx#3451 (comment)
We already correctly understand that envvar, so this is unexpected and
wrong.
Sphinx looks for a 4-digit year followed by a space or two 4-digit years
separated by a dash. We can fix this by using an en-dash, which is the
correct typographical symbol for date ranges anyway, and thwarts Sphinx.
Fixes matplotlib#208541 parent e73b1be commit 20f0f76
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
| 233 | + | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| |||
0 commit comments