We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c83f93 commit 615b71cCopy full SHA for 615b71c
src/cfengine_cli/docs.py
@@ -22,10 +22,12 @@
22
23
IGNORED_DIRS = [".git"]
24
25
+
26
def count_indent(string: str) -> int:
27
stripped = string.lstrip(" ")
28
return len(string) - len(stripped)
29
30
31
def extract_inline_code(path, languages):
32
"""extract inline code, language and filters from markdown"""
33
@@ -65,7 +67,9 @@ def extract_inline_code(path, languages):
65
67
"first_line": child.map[0],
66
68
"last_line": child.map[1],
69
"indent": indent,
- "lines": lines[first_line:last_line] # Includes backtick fences on both sides
70
+ "lines": lines[
71
+ first_line:last_line
72
+ ], # Includes backtick fences on both sides
73
}
74
75
0 commit comments