Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pkutaj/ede27a5c8b7fe745091ad4eac62a01be to your computer and use it in GitHub Desktop.
Save pkutaj/ede27a5c8b7fe745091ad4eac62a01be to your computer and use it in GitHub Desktop.
SSAP-44.03-State-Machine-for-Log-Reducer8.py
""" ...code """
if action == "skip":
pass
elif action == "print_line":
log_output.write(line)
elif action == "print_H1_line":
log_output.write(f"# {line}")
elif action == "print_H2_line":
log_output.write(f"## PLAN: {line}")
elif action == "print_H3_line":
log_output.write(line.replace("#", "###"))
elif action == "print_EOB":
log_output.write(line)
log_output.write(">"+(100*"-")+"\n\n")
""" ...code """
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment