New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Possible missing end
keyword argument in Text.from_markup
#2054
Comments
You may be right! In the meantime, you can set |
@willmcgugan need a PR? |
If you wouldn't mind! :) |
@willmcgugan while testing my changes, I noticed one thing (same happened with my from_markup implementation) import rich
from rich.text import Text
rich.print(Text("hello", end=" ") + Text("hi")) shouldn't this print |
I don't think that would be desirable, although I can see the logic. The default is "\n", but you wouldn't want adding text to have new lines.
|
Did I solve your problem? Why not buy the devs a coffee to say thanks? |
Is
Text.from_markup
missing anend
keyword-argument?I use
Text("Hello, world!", end="")
to createText
object without a newline. If I want to use console markup, I'd want to useText.from_markup(":rocket: Hello, world!", end="")
, but this throws an argument error.The text was updated successfully, but these errors were encountered: