I just submitted issue 626. I have attached a patch to fix it, but I wanted to check that we want the behavior I am fixing:
http://code.google.com/p/pyglet/issues/detail?id=626
The problem is trying to get two paragraphs in a RichLabel. The underlying AttributedTextDecoder() has a feature where you can write multiple lines and they are combined into one paragraph. E.g.:
"ONE\nTWO"
is drawn by RichLabel as:
ONE TWO
But two newlines gets interpreted as a paragraph with an extra newline between them, e.g.
"ONE\n\nTWO"
is drawn as:
ONE
TWO
So it is not possible to have two paragraphs without a blank line in between, like:
ONE
TWO
The attached patch fixes this, and also adds a test case. What do you think? I have access to the repo so I can commit it, but I want to check that I'm not misinterpreting how this is supposed to work.