Skip to content

Instantly share code, notes, and snippets.

@dsummersl
Created March 7, 2015 03:21
Show Gist options
  • Select an option

  • Save dsummersl/579749d69eed412ec1b5 to your computer and use it in GitHub Desktop.

Select an option

Save dsummersl/579749d69eed412ec1b5 to your computer and use it in GitHub Desktop.
for (line, logstr) in zip(lines, text):
line = "".join(line)
if len(line.strip()) == 0: continue
result.append(["%-*s" % (2 * indentation_level, line), logstr])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment