File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ document.addEventListener("DOMContentLoaded", function () {
321321 function renderDefinitionContent ( content , options = { } ) {
322322 const { appendHtml = "" } = options ;
323323 const paragraphs = String ( content || "" )
324- . split ( / \n \s * \n / )
324+ . split ( / \n [ \t ] * \n / )
325325 . map ( ( paragraph ) => paragraph . trim ( ) )
326326 . filter ( Boolean ) ;
327327
@@ -391,7 +391,7 @@ document.addEventListener("DOMContentLoaded", function () {
391391 break ;
392392 }
393393
394- footnoteDefinitions . set ( id , definitionLines . join ( "\n" ) . trimEnd ( ) ) ;
394+ footnoteDefinitions . set ( id , definitionLines . join ( "\n" ) . trim ( ) ) ;
395395 }
396396
397397 return preservedLines . join ( "\n" ) ;
Original file line number Diff line number Diff line change @@ -321,7 +321,7 @@ document.addEventListener("DOMContentLoaded", function () {
321321 function renderDefinitionContent ( content , options = { } ) {
322322 const { appendHtml = "" } = options ;
323323 const paragraphs = String ( content || "" )
324- . split ( / \n \s * \n / )
324+ . split ( / \n [ \t ] * \n / )
325325 . map ( ( paragraph ) => paragraph . trim ( ) )
326326 . filter ( Boolean ) ;
327327
@@ -391,7 +391,7 @@ document.addEventListener("DOMContentLoaded", function () {
391391 break ;
392392 }
393393
394- footnoteDefinitions . set ( id , definitionLines . join ( "\n" ) . trimEnd ( ) ) ;
394+ footnoteDefinitions . set ( id , definitionLines . join ( "\n" ) . trim ( ) ) ;
395395 }
396396
397397 return preservedLines . join ( "\n" ) ;
You can’t perform that action at this time.
0 commit comments