datakurre / sphinxcontrib-robotdoc

Embed Robot Framework test suites and keyword libraries into your Sphinx documentation
5 stars 4 forks source link

Error: bad escape \e #14

Closed JasperCraeghs closed 4 years ago

JasperCraeghs commented 4 years ago

The two occurrences of the line below in _sphinxcontribrobotdoc.py cause an error: parsed = regex.sub('\end{Verbatim}\n', parsed) Raises re.error: bad escape \e at position 0 (line 1, column 1)

The error no longer occurs after adding two \ characters: parsed = regex.sub('\\\end{Verbatim}\n', parsed)

I'd open a PR, but it seems I'm not allowed to push my branch.

datakurre commented 4 years ago

Thanks. You should be able to fork this repository under your own account, commit changes there and the open a pull request.