ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
167 stars 32 forks source link

Parsing error when escaped inside a string #37

Closed elamhut closed 3 years ago

elamhut commented 3 years ago

Trying to use this for my build tool, I'm getting some errors when the parser tries to deal with Paths such as when parsing:

"appbuild" { "appid" "111111111" "desc" "Description you want" "buildoutput" "D:\SteamSDK\tools\ContentBuilder\output" "contentroot" "" "setlive" "internaltest" "preview" "0" "local" "" "depots" { "111111111" "D:\SteamSDK\tools\ContentBuilder\scripts\generic_depot.vdf" } }

This is what it's returning

"appbuild" { "appid" "111111111" "desc" "Description you want" "buildoutput" "D:\\SteamSDK\tools\\ContentBuilder\\output" "contentroot" "" "setlive" "internaltest" "preview" "0" "local" "" "depots" { "111111111" "D:\\SteamSDK\tools\\ContentBuilder\\scripts\\generic_depot.vdf" } }

Notice D:\SteamSDK\tools\ContentBuilder\scripts\generic_depot.vdf

Where \tools it's only giving one backslash because \t is an escape command.

rossengeorgiev commented 3 years ago

Duplicate of #38