Commit c47256d
committed
Fix RST escaping bugs causing --fail-on-warning build failure
CI builds with sphinx-build --fail-on-warning, so the 56 warnings from
the previous push were hard failures. Root cause: two escaping bugs
introduced across the large tkinter.po translation batch.
1. A role/literal close (`` ` `` or ``` `` ```) directly followed by a
full-width ( with no `\ ` separator confuses docutils' inline markup
boundary detection, which can silently swallow or merge adjacent
role references in the same paragraph -- surfacing as Sphinx's
i18n.inconsistent_references warnings (dropped or merged :class:/
:meth:/:attr:/:term: references) in tkinter.po, tkinter.ttk.po,
http.cookiejar.po, and c-api/unicode.po.
2. The same applies to *emphasis*( with no space/separator before the
parenthesis, which docutils reports as "Inline emphasis start-string
without end-string" since the closing `*` isn't followed by a
recognized boundary character. Fixed by adding the space that's
already the established convention elsewhere in this file.
Also fixes a review comment on PR #1239: removes a stray literal space
that rendered as a visible gap between adjacent Chinese text and a
role's Chinese display text in c-api/dict.po.
Co-authored-by: Claude <noreply@anthropic.com>1 parent 03424c0 commit c47256d
6 files changed
Lines changed: 110 additions & 108 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
926 | 926 | | |
927 | 927 | | |
928 | 928 | | |
929 | | - | |
930 | | - | |
| 929 | + | |
| 930 | + | |
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
427 | 427 | | |
428 | 428 | | |
429 | 429 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
463 | 463 | | |
464 | 464 | | |
465 | 465 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
469 | 469 | | |
470 | 470 | | |
471 | 471 | | |
| |||
0 commit comments