mirror of
https://github.com/wassname/side-by-side.git
synced 2026-09-23 13:50:24 +08:00
Switch to tabs for indentation
I got drunk, read the coffeescript style guide, and decided to use spaces. Spaces for indentation is still as bad an idea as it ever were, and this is not a coffeescript project - it's multilingual, hence using coffeescript conventions is pointless.
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
angular.module("sideBySide").factory("jsonReader", () ->
|
||||
return (source) ->
|
||||
parsed = eval('(' + source + ')')
|
||||
return (source) ->
|
||||
parsed = eval('(' + source + ')')
|
||||
|
||||
new_content = []
|
||||
for verse in parsed.content
|
||||
if typeof(verse) == "string"
|
||||
new_content.push({ section: "", text: verse })
|
||||
else
|
||||
if "section" not of verse
|
||||
verse.section = ""
|
||||
new_content.push(verse)
|
||||
new_content = []
|
||||
for verse in parsed.content
|
||||
if typeof(verse) == "string"
|
||||
new_content.push({ section: "", text: verse })
|
||||
else
|
||||
if "section" not of verse
|
||||
verse.section = ""
|
||||
new_content.push(verse)
|
||||
|
||||
parsed.content = new_content
|
||||
return parsed
|
||||
parsed.content = new_content
|
||||
return parsed
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user