luafmt | A small Lua formatter / pretty printer | 3D Printing library
kandi X-RAY | luafmt Summary
kandi X-RAY | luafmt Summary
A small Lua formatter / pretty printer
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of luafmt
luafmt Key Features
luafmt Examples and Code Snippets
Community Discussions
Trending Discussions on luafmt
QUESTION
I'm creating a sublime text plugin to use lua-fmt and format lua code automatically on save. It's almost done, except some characters like '‰' return weird results like "�" after the formatting.
What I did to format the code was create a file with the old code and use the lua-fmt program, by calling it with subprocess.check_output
like in the excerpt below:
ANSWER
Answered 2019-Jan-29 at 13:32As @GiacomoCatenazzi pointed out, I was not explicitly enconding my auxiliar file, which made the lua-fmt not know the strange character, changing the open method to wd
and encoding it as UTF-8 worked perfectly!
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install luafmt
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page