How to add to TextLog without adding a newline #2965
-
I'm trying to add text to TextLog without an automatic newline after every .write(), I can't seem to find a way to to this. Any thoughts on the best approach? |
Beta Was this translation helpful? Give feedback.
Answered by
willmcgugan
Jul 18, 2023
Replies: 2 comments 2 replies
-
It looks like the newlines are baked into the TextLog, could you give an example of the sort of text you're wanting to write? |
Beta Was this translation helpful? Give feedback.
2 replies
-
I have this working, but came across a bug trying to render partially formatted Markdown tables. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ChatGPT apps with Textual tend to use a widget with Markdown, and simply re-render the widget each time. It's not super efficient, but it works well enough.
I don't think we have a trivial way of updating just the last line of a TextLog, but it might be an idea for a future update.