Skip to content

Commit 429b5cc

Browse files
committed
Fix renaming substitution w/o value with <L:0>
There is not much point in adding the <L:0> parameter to a substitution vithout values, but it is a valid setting so ...
1 parent 670fd3f commit 429b5cc

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

makefile-doc.awk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -526,6 +526,10 @@ function display_substitutions(anchor, len_anchors, #locals
526526
M || (!M && k == n) ? "\n" : "")
527527
printf(colorize_description_backticks(apply_output_specific_formatting(text)))
528528
}
529+
530+
if (!SUB_PARAMS_CURRENT["L"] && n == 0) {
531+
printf("\n")
532+
}
529533
}
530534

531535
function display_anchor_with_data(anchor, description, section, len_anchors, #locals
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
-v SUB='<L:0>$(TARGET):renamed:' -v VARS=0 test/Makefile.substitutions
2+
-----------------------
3+
Available targets:
4+
-----------------------
5+
renamed Some target:
6+
-----------------------

0 commit comments

Comments
 (0)