citus_docs icon indicating copy to clipboard operation
citus_docs copied to clipboard

code-block:: psql only formats the first line in a code block

Open ozgune opened this issue 8 years ago • 2 comments

When I use ..code-block:: psql in our documentation, only the first code line gets formatted. Subsequent code block lines are formatted in grey.

For example, the following section in our documentation doesn't have the right formatting on its second line.

https://docs.citusdata.com/en/v6.2/tutorials/real-time-analytics-tutorial.html#distributing-tables-and-loading-data

.. code-block:: psql

\copy github_users from 'users.csv' with csv;
\copy github_events from 'events.csv' with csv;

ozgune avatar Jul 13 '17 20:07 ozgune

Dang, I expected this would be fixed by all the theme work since this issue was created, but nope. I also had suspected it was caused by the terminating semicolons which is technically incorrect with backslash commands. But the semicolons are no longer there and still no good highlighting. This still needs more research.

begriffs avatar Mar 28 '18 22:03 begriffs

This bug still exists (for instance in [0]) and I think needs to be fixed upstream in [1].

0: https://docs.citusdata.com/en/v8.3/get_started/tutorial_realtime_analytics.html#distributing-tables-and-loading-data 1: https://bitbucket.org/birkenfeld/pygments-main/src/19eebedfaad41803086b4f7224f1e6bd19a1ab51/pygments/lexers/sql.py#lines-237

jonels-msft avatar Oct 29 '19 17:10 jonels-msft