Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 495 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 495 Bytes

Newline Indenter

swiftnewlineIndenter is the switft rewrite of a small utility written in objective-c that fixes the formatting of empty newlines in the same way the Xcode indent command would.

Annimated Demo

#API

##indentFileText This method takes a string of the file to be formatted and will return a correctly indented version.

func indentFile(fileText:String) -> String