Open haowangapple opened 2 years ago
Added fix for this issue in latest commit 16c98a5d02ced53869d38af73922057d24fd86e3, this is the test content - https://github.com/dmulyalin/ttp/blob/16c98a5d02ced53869d38af73922057d24fd86e3/test/pytest/test_answers_and_docs.py#L7145 - feel free to review or install from master and test for your environment, let me know how it goes.
joinmatches() doesn't work when the lines it matched appear after some other lines that are matched by an embedded group. This is similar to the following issue: https://github.com/dmulyalin/ttp/issues/65
Example that is working:
It generates the following output, which is expected:
However, if we move
above
so that the embedded group "servers*" will match lines first, then the later joinmatches() does not work any more. Here is the example code that show this:
And it generates following result, which doesn't include the joinmatches: