Fix extraneous space added after multiline alternative patterns
This commit is contained in:
parent
dd77fa7e53
commit
83ac723a50
|
@ -12,6 +12,7 @@
|
||||||
- **aiken-project**: Provide intermediate feedback when looking for counterexamples during property tests. @KtorZ
|
- **aiken-project**: Provide intermediate feedback when looking for counterexamples during property tests. @KtorZ
|
||||||
- **aiken-lang**: Fix formatter adding extra unnecessary newlines after literal lists clause values or assignments. @KtorZ
|
- **aiken-lang**: Fix formatter adding extra unnecessary newlines after literal lists clause values or assignments. @KtorZ
|
||||||
- **aiken-lang**: Fix formatting of long multi-line if/is expressions. @KtorZ
|
- **aiken-lang**: Fix formatting of long multi-line if/is expressions. @KtorZ
|
||||||
|
- **aiken-lang**: Fix extraneous white-space added by the formatter after multiline alternative patterns. @KtorZ
|
||||||
- **uplc**: Fix cost-models for PlutusV1 & PlutusV2. @MicroProofs
|
- **uplc**: Fix cost-models for PlutusV1 & PlutusV2. @MicroProofs
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
|
@ -1901,7 +1901,7 @@ impl<'comments> Formatter<'comments> {
|
||||||
let space_before = self.pop_empty_lines(clause.location.start);
|
let space_before = self.pop_empty_lines(clause.location.start);
|
||||||
let clause_doc = join(
|
let clause_doc = join(
|
||||||
clause.patterns.iter().map(|p| self.pattern(p)),
|
clause.patterns.iter().map(|p| self.pattern(p)),
|
||||||
break_(" | ", " | "),
|
break_(" |", " | "),
|
||||||
)
|
)
|
||||||
.group();
|
.group();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue