pycco-docs / pycco

Literate-style documentation generator.

Home Page:https://pycco-docs.github.io/pycco/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug when parsing "[[file1.py]] and [[file2.py]]"

gurgeh opened this issue · comments

The parser (I think there is something wrong with your reg.exp, but I have not investigated it further) mess up when you use two [[file]]-statements in the same comment block. Like this:

# This file depends on [[file1.py]] and [[file2.py]].

The resulting HTML looks like:

This file depends on [file1.py]] and [file2.py.

You do this in one of the pycco-comments, but the bug does not trigger, since there are some other markup between.

Thanks for noting the issue.

Regular expression + was too greedy. Fixed by f85ead9.