Spaces -> Tabs
parent
28ac1dc8ee
commit
fc262fcfab
|
@ -7,18 +7,18 @@ By submitting additions or changes of any form to this project, you agree to abi
|
|||
# Source Code Formatting Guidelines
|
||||
All source code submitted to this project is to abide by these guidelines whenever applicable, unless waived by a project maintainer:
|
||||
|
||||
_"Bracket" here refers to Curly Brackets, Square Brackets, and Perentheses_
|
||||
_"Bracket" here refers to Curly Brackets, Square Brackets, and Parentheses_
|
||||
|
||||
* Use 1 "Hard Tab" to indent each logical section of code
|
||||
* Encase All "String Literals" in double quotes
|
||||
* Place a comma after every entree in any multi-line table
|
||||
* Do not place whitespace:
|
||||
* Between a function and it's parameters
|
||||
* After any opening bracket
|
||||
* Before any closing bracket
|
||||
* Between a function and it's parameters
|
||||
* After any opening bracket
|
||||
* Before any closing bracket
|
||||
* Place Whitespace:
|
||||
* Around operators, except in a single-line table or a for-loop constructor
|
||||
* Between function arguments
|
||||
* Around operators, except in a single-line table or a for-loop constructor
|
||||
* Between function arguments
|
||||
* Between variables in a multi-line table
|
||||
* Place any closing bracket used for a registration at the same indentation level as the registration function call
|
||||
* Place a newline at the end of every source code file
|
||||
|
|
|
@ -31,7 +31,7 @@ function table.merge_dictionary(d1, d2)
|
|||
end
|
||||
|
||||
function string:insert(pos, str)
|
||||
return self:sub(1, pos) .. str .. self:sub(pos+1)
|
||||
return self:sub(1, pos) .. str .. self:sub(pos+1)
|
||||
end
|
||||
|
||||
-- Pre-5.1.x compatibility
|
||||
|
|
|
@ -22,7 +22,7 @@ end
|
|||
function ikea.mapgen.every_n_mapblocks(n)
|
||||
return function(value)
|
||||
return (value / 16) % n == 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue