mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-08-24 20:52:11 +00:00
Fixed additional slide text being written into a throwaway buffer
This commit is contained in:
parent
e739468a85
commit
96cc4c4976
@ -4,5 +4,10 @@ namespace AIStudio.Tools;
|
|||||||
|
|
||||||
public sealed class SlideTextContent(string textContent) : ISlideContent
|
public sealed class SlideTextContent(string textContent) : ISlideContent
|
||||||
{
|
{
|
||||||
public StringBuilder Text => new(textContent);
|
//
|
||||||
|
// One builder per slide, created once: an expression-bodied property would hand out a fresh
|
||||||
|
// builder on every access, so appending further text to a slide would write into a throwaway
|
||||||
|
// object and the text would never reach the slide.
|
||||||
|
//
|
||||||
|
public StringBuilder Text { get; } = new(textContent);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user