Nimpretty Fix negative indent breaks code (#13580)
This commit is contained in:
parent
9fa070b1dc
commit
0809098971
2 changed files with 3 additions and 2 deletions
|
|
@ -126,6 +126,7 @@
|
||||||
|
|
||||||
### Tool changes
|
### Tool changes
|
||||||
|
|
||||||
|
- Fix Nimpretty must not accept negative indentation argument because breaks file.
|
||||||
|
|
||||||
|
|
||||||
### Compiler changes
|
### Compiler changes
|
||||||
|
|
|
||||||
|
|
@ -44,8 +44,8 @@ proc writeVersion() =
|
||||||
|
|
||||||
type
|
type
|
||||||
PrettyOptions = object
|
PrettyOptions = object
|
||||||
indWidth: int
|
indWidth: Natural
|
||||||
maxLineLen: int
|
maxLineLen: Positive
|
||||||
|
|
||||||
proc prettyPrint(infile, outfile: string, opt: PrettyOptions) =
|
proc prettyPrint(infile, outfile: string, opt: PrettyOptions) =
|
||||||
var conf = newConfigRef()
|
var conf = newConfigRef()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue