Commit c87df3c
committed
fix(gui): resolve overlapping lines in thinking and tool result blocks
- Preserve newlines in thinking/tool content by normalizing single \n to
paragraph breaks before markdown parsing (markdown treats \n as space)
- Add markdown_to_md_blocks_with_options() with preserve_newlines flag
- Add line spacing (Theme.space-xs) between rich text lines in
RichParagraph, UserBubble, HeadingBlock, ListItemBlock, BlockQuoteBlock
- Increase block spacing in MarkdownContent to Theme.space-sm
- Use preserve_newlines for thinking and tool result parsing in bridge,
sessions, and build_tool_result_blocks
- Clean up sven-tui markdown imports and formatting1 parent 90cbe07 commit c87df3c
File tree
4 files changed
+51
-468
lines changed- crates
- sven-gui
- src
- ui
- sven-tui/src
4 files changed
+51
-468
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
1768 | 1768 | | |
1769 | 1769 | | |
1770 | 1770 | | |
1771 | | - | |
| 1771 | + | |
1772 | 1772 | | |
1773 | 1773 | | |
1774 | 1774 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
236 | 258 | | |
237 | 259 | | |
238 | 260 | | |
239 | 261 | | |
240 | 262 | | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
241 | 267 | | |
242 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
243 | 283 | | |
244 | 284 | | |
245 | 285 | | |
| |||
370 | 410 | | |
371 | 411 | | |
372 | 412 | | |
373 | | - | |
| 413 | + | |
374 | 414 | | |
375 | 415 | | |
376 | 416 | | |
| |||
602 | 642 | | |
603 | 643 | | |
604 | 644 | | |
605 | | - | |
| 645 | + | |
606 | 646 | | |
607 | 647 | | |
608 | 648 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
219 | | - | |
| 219 | + | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
289 | | - | |
| 289 | + | |
290 | 290 | | |
291 | 291 | | |
292 | 292 | | |
| |||
512 | 512 | | |
513 | 513 | | |
514 | 514 | | |
515 | | - | |
| 515 | + | |
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
| |||
575 | 575 | | |
576 | 576 | | |
577 | 577 | | |
578 | | - | |
| 578 | + | |
579 | 579 | | |
580 | 580 | | |
581 | 581 | | |
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
776 | 776 | | |
777 | 777 | | |
778 | 778 | | |
779 | | - | |
| 779 | + | |
780 | 780 | | |
781 | 781 | | |
782 | 782 | | |
| |||
0 commit comments