Skip to content

Commit c81be6d

Browse files
committed
cfdoc_macros.py: Adjusted the script to find lowercase 'attributes' in the heading
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
1 parent 6b7737d commit c81be6d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

generator/_scripts/cfdoc_macros.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def promise_attribute(parameters, config):
146146
promise_types = config["syntax_map"]["promiseTypes"]
147147
body_types = config["syntax_map"]["bodyTypes"]
148148

149-
if header[2].find("Attributes") != -1:
149+
if (header[2].find("Attributes") != -1) or (header[2].find("attributes") != -1):
150150
# assumption for promise type definition
151151
# header[1] = promise type
152152
# header[2] = "Attributes"

0 commit comments

Comments
 (0)