File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change 2
2
using System . Collections . Generic ;
3
3
using System . Text ;
4
4
using System . Text . RegularExpressions ;
5
+ using Saturn . UI . Objects ;
5
6
using Terminal . Gui ;
6
7
7
8
namespace Saturn . UI
@@ -188,29 +189,4 @@ public FormattedText RenderToFormattedText(string markdown)
188
189
return formattedText ;
189
190
}
190
191
}
191
-
192
- public class FormattedText
193
- {
194
- private List < ( string text , Terminal . Gui . Attribute attribute ) > segments = new ( ) ;
195
-
196
- public void Add ( string text , Terminal . Gui . Attribute attribute )
197
- {
198
- segments . Add ( ( text , attribute ) ) ;
199
- }
200
-
201
- public List < ( string text , Terminal . Gui . Attribute attribute ) > GetSegments ( )
202
- {
203
- return segments ;
204
- }
205
-
206
- public override string ToString ( )
207
- {
208
- var sb = new StringBuilder ( ) ;
209
- foreach ( var segment in segments )
210
- {
211
- sb . Append ( segment . text ) ;
212
- }
213
- return sb . ToString ( ) ;
214
- }
215
- }
216
192
}
You can’t perform that action at this time.
0 commit comments