readthedocs / sphinx_rtd_theme

Sphinx theme from Read the Docs
https://sphinx-rtd-theme.readthedocs.io/
MIT License
4.75k stars 1.73k forks source link

..code-block:: bash: many color errors #1561

Open jidanni opened 4 months ago

jidanni commented 4 months ago

All I know is

.. code-block:: bash

   echo -output_xy \
   -gcp 0   0    -111.89114717 40.76932606 \
   -gcp 0   -500 -111.89114803 40.75846686 \
   -gcp 500 0    -111.87685039 40.76940631 > optfile.txt

has many color errors: 20240510T091958

https://gdal.org/programs/gdaltransform.html#ground-control-points

E.g., negative numbers are treated differently. And decimals too. Maybe it thinks echo(1) arguments are bash arguments. It shouldn't be coloring numbers at all here in fact.

No I didn't install ReadTheDocs. All I know is I edited this file on GitHub, and when my PR was approved, this is what it looked like.