Skip to content

Commit 8152122

Browse files
committed
4.2.2 - cljfmt correctly indents forms with custom rules - again
1 parent bfa0793 commit 8152122

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### 4.2.2 - Sep 27, 2024
2+
3+
- cljfmt correctly indents forms with custom rules - again
4+
15
### 4.2.1 - Sep 27, 2024
26

37
- cljfmt correctly indents forms with custom rules

cs_cljfmt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def newline_indent(view, point):
9090

9191
excerpt = ''
9292
if ns:
93-
excerpt = ns + '\n'
93+
excerpt = text[ns.start:ns.end] + '\n'
9494

9595
excerpt = excerpt + text[start:] + "\nCLOJURE_SUBLIMED_SYM" + "".join(to_close)
9696
formatted = format_string(excerpt, view = view)

0 commit comments

Comments
 (0)