Sorry for the mistake in the example code, the input should end in a 
backquote; i.e.,
   :samp:`\{ {x} , {y} \}`

On Saturday, November 14, 2020 at 4:35:53 AM UTC-7 bradley...@gmail.com 
wrote:

> In the following documentation
>
> https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-samp
>
> It says:
> Changed in version 1.8: Allowed to escape curly braces with backslash
>
> I therefore expect the input
>    :samp:`\{ {x}, {y} \}'
> to have the first { in normal font, but in my tests it comes out in italic 
> font. 
>
> How do I escape the { and } characters so that they display instead of 
> switching font in the :samp: role ?
>

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sphinx-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sphinx-users/f75ab8e5-0324-4622-a107-cca2b7600a98n%40googlegroups.com.

Reply via email to