I would like to present the output of a command treein a Restructured Text document. I am using this code:
.. code-block:: bash
project
βββ demo.py
βββ LICENCE.txt
βββ processes
β βββ area.py
β βββ bboxinout.py
βββ pywps.cfg
βββ requirements.txt
βββ server.py
βββ setup.py
βββ static
βββ templates
βββ tests
Which produces the following output:

Then I tried replacing the characters treewith unicode definitions, for example:
.. |hbar| unicode:: 01C0 ..
But the sequence |hbar|is printed verbatim when used inside a code block.
Is there any other way to force these characters to be printed?
source
share