@ -345,26 +345,6 @@ x = a + b *
@@ -345,26 +345,6 @@ x = a + b *
d
```
### Vertical spacing
Runic removes empty vertical spacing so that there are at maximum two empty lines between
expressions. Examples:
```diff
-function f()
- x = 1
-
-
-
- return x
-end
+function f()
+ x = 1
+
+
+ return x
+end
```
### Spaces around operators, assignment, etc
Runic formats spaces around infix operators, assignments, comparison chains, and type
@ -598,10 +578,48 @@ Braces are consistently used around the right hand side of `where` expressions.
@@ -598,10 +578,48 @@ Braces are consistently used around the right hand side of `where` expressions.
+T where {T <:S}where{S<:Any}
```
### Trailing whitespace
### Whitespace miscellaneous
#### Trailing spaces
Trailing spaces are removed. Example:
```diff
-1 + 1
+1 + 1
```
#### Tabs
Tabs are replaced with spaces. Example:
```diff
-function f()
- return 1
-end
+function f()
+ return 1
+end
```
#### Vertical spacing
Extra vertical spacing is trimmed so that there are at maximum two empty lines
between expressions. Examples:
```diff
-function f()
- x = 1
-
-
-
- return x
-end
+function f()
+ x = 1
+
+
+ return x
+end
```
Any newlines at the start of a file are removed and if the file ends with more