Commit 959926c
Deduplicate source references when merging extracted messages (#441)
* Deduplicate source references when merging extracted messages
Two extraction calls that resolve to the same msgid at the same file:line
each contribute a reference group, and merge_messages_after_checks/2
concatenates them without uniquing. Macro-generated code produces N calls
attributed to a single line, so the same comment is written N times.
on the very next line is already uniqued; this makes
consistent with it.
* Update test/gettext/extractor_test.exs
Co-authored-by: Jonatan Männchen <jonatan@maennchen.ch>
---------
Co-authored-by: Jonatan Männchen <jonatan@maennchen.ch>1 parent d3d3046 commit 959926c
2 files changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
479 | 514 | | |
480 | 515 | | |
481 | 516 | | |
| |||
0 commit comments