datakurre / sphinxcontrib-robotdoc

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

Fix bad escape #15

Closed JasperCraeghs closed 4 years ago

JasperCraeghs commented 4 years ago

Resolves https://github.com/datakurre/sphinxcontrib-robotdoc/issues/14

datakurre commented 4 years ago

Thanks. I blindly released 0.11.0 and would be grateful if you could test and confirm it works as expected.

JasperCraeghs commented 4 years ago

I successfully built the example documentation of mlx.robot2rst with the 0.11.0 release. It works as expected.

datakurre commented 4 years ago

@JasperCraeghs Thanks for trying this out.

As an afterthought, it would have been enough, probably, to make those strings raw-strings as in r'\end{Verbatim}\n'.

JasperCraeghs commented 4 years ago

I just tried you suggestion, but your raw string doesn't contain enough escape characters and results in the same re.error: bad escape \e at position 0.

Solution: r'\\end{Verbatim}\n'

datakurre commented 4 years ago

Thanks that makes sense.