File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,18 +27,6 @@ type ParseNovelSectionProps = {
2727 onNavigateToParseChapter ?: ( ) => void ;
2828} ;
2929
30- /** Normalize line breaks / spaces for multi-line summary display (playground + long single-line strings). */
31- function formatSummaryForDisplay ( raw : string ) : string {
32- return raw
33- . replace ( / \r \n / g, '\n' )
34- . replace ( / \r / g, '\n' )
35- . replace ( / [ \t \f \v ] + / g, ' ' )
36- . replace ( / * \n * / g, '\n' )
37- . replace ( / [ \u00a0 ] + / g, ' ' )
38- . replace ( / \n { 3 , } / g, '\n\n' )
39- . trim ( ) ;
40- }
41-
4230const ParseNovelSection = React . memo ( function ParseNovelSection ( {
4331 onNavigateToParseChapter,
4432} : ParseNovelSectionProps ) {
@@ -372,8 +360,8 @@ const ParseNovelSection = React.memo(function ParseNovelSection({
372360 < h4 className = "font-semibold text-foreground mb-2" >
373361 Summary
374362 </ h4 >
375- < p className = "max-w-prose text-sm text-muted-foreground leading-7 whitespace-pre-line break-words font-sans antialiased " >
376- { formatSummaryForDisplay ( sourceNovel . summary ) }
363+ < p className = "text-sm text-muted-foreground leading-relaxed whitespace-pre-wrap " >
364+ { sourceNovel . summary }
377365 </ p >
378366 </ div >
379367 ) }
You can’t perform that action at this time.
0 commit comments