Skip to content

Instantly share code, notes, and snippets.

@onionhammer
Last active August 29, 2015 14:04
Show Gist options
  • Save onionhammer/7673438a60eb9b3ece31 to your computer and use it in GitHub Desktop.
Save onionhammer/7673438a60eb9b3ece31 to your computer and use it in GitHub Desktop.
Indentation fix
when someModule:
proc a =
const someHtml = """
<div>breaks indentation</div>
"""
proc b =
const someHtml = """
<div>extra indentation</div>
"""
proc b =
const someHtml = html"""
<div>fixed indentation</div>
"""
renders as:
<div>breaks indentation</div>
<div>extra indentation</div>
<div>fixed indentation</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment