Skip to content

Commit

Permalink
EOL Whitespace bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamDraco committed Jan 2, 2021
1 parent c890e08 commit d1a7052
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# v1.3.2
- Bugfix in the 1.3.2 EOL whitespace handling

# v1.3.1
- Improve EOL handling of whitespace (in and out of nwnt) for nul-values (Sorry for large diffs as a result. Make sure all contributors are either before or after this version to prevent flip-flopping on the diffs)
- handle gff formats with varying magic-byte datatype lengths (future proofing, don't think any exist but 'just in case')
Expand Down
2 changes: 1 addition & 1 deletion nwnt.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "1.3.1"
version = "1.3.2"
author = "WilliamDraco"
description = "GFF <-> NWNT Converter (NeverWinter Nights Text)"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions src/nwnt/gffnwnt.nim
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ proc gffStructFromNwnt*(file: FileStream, result: GffStruct, listDepth: int = 0)
break

let
subValue = subSplit[1][1..^1]
subValue = if subSplit[1].len == 0: "" else: subSplit[1][1..^1]
subLable = indexSplit[1][0..^3]

exo.entries[parseInt(subLable)] = manageEscapesToGff(subValue)
Expand Down Expand Up @@ -188,7 +188,7 @@ proc gffStructFromNwnt*(file: FileStream, result: GffStruct, listDepth: int = 0)

let
newListIDSplit = line.split('=', 1)
newListID = newListIDSplit[1][1..^1]
newListID = if newListIDSplit[1].len == 0: "" else: newListIDSplit[1][1..^1]

listStructID = parseInt(newListID).int32

Expand Down

0 comments on commit d1a7052

Please sign in to comment.