pycco-docs / pycco

Literate-style documentation generator.
https://pycco-docs.github.io/pycco/
Other
842 stars 144 forks source link

Multi-Line Comment Bugfix for Issue #17 #90

Closed iamtrask closed 8 years ago

iamtrask commented 8 years ago

Below I've created support to fix the bug documented in Issue #17. Previously, mulit-line comments that were opened but were not the beginning of the line were not detected. Under the current version of pycco, the code below became very obfuscated when documentation was generated.

The Bug

does this render on the left or right?

print smushed(2, 5)==4

p = """ how about this? """

y = z # is this where it should be?

how did this get so BIG!

def x3(): """how would you fix? """

However, with this fix, the "p = " section is handled appropriately.