#137 Braces disappear

closed-fixed
Edward Loper
epytext (18)
6
2007-02-11
2006-09-20
Anonymous
No

The epytext webpage says "Without the capital letter,
matching braces are not interpreted as markup:
C{my_dict={1:2, 3:4}}."

It's not perfectly clear, but this seems to imply that
it's independent of the C{} it's in. For example, the
text {1:2,3:4} on its own in a docstring renders as
{1:2,3:4}, which makes sense.

When I try (Epydoc 3.0alpha3, Python 2.4.2) to use more
than one, though, it just ignores the inner ones:
{1:{2:3}} renders as {1:2:3}, which obviously has a
very different meaning. Wrapping the whole thing in
C{} (as in, C{{1:{2:3}}}) doesn't seem to help.

It's not clear if this is intended behavior or not, and
if so, how to type {1:{2:3}} so it renders properly in
the output.

Thanks!

Discussion

  • Edward Loper
    Edward Loper
    2006-09-25

    • labels: --> epytext
    • priority: 5 --> 6
    • assigned_to: nobody --> edloper
     
  • Edward Loper
    Edward Loper
    2006-09-25

    Logged In: YES
    user_id=195958

    This is definitely a bug. I'll look into what's causing it
    when I get a chance. (Might be another week or so -- I'm
    out of town right now.)

     
  • Edward Loper
    Edward Loper
    2007-02-11

    • status: open --> closed-fixed
     
  • Edward Loper
    Edward Loper
    2007-02-11

    Logged In: YES
    user_id=195958
    Originator: NO

    I believe this should be fixed now (svn revision 1460).

    But the symptoms I was seeing were slightly different from what you described -- when I had it parse {1:{2:3}}, I got back {{2:3}}, not {1:2:3} as you reported. So if find that this still isn't working, please re-open the bug report.