Commit ad0c498
committed
FIX: Keep bracketed strings in service descriptions in hover menu
The dynamic macro pass in ElementHover.js runs over the whole template
after the child rows have been substituted, so a bracketed string that is
part of a child value (e.g. a service description like "Switch1 [xxx]") was
mistaken for an unknown macro and dropped, leaving only "Switch1".
Preserve the original "[name]" text for tokens that are not actual macros,
using hasOwnProperty so that defined macros holding a legitimately empty
value (e.g. an empty plugin output) are still replaced correctly.1 parent 20bf85a commit ad0c498
2 files changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
565 | | - | |
566 | | - | |
567 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
568 | 573 | | |
569 | 574 | | |
570 | 575 | | |
| |||
0 commit comments