File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -243,6 +243,8 @@ class App {
243243 removePageNumbers : true ,
244244 removeHeadersFooters : true ,
245245 removeDuplicates : true ,
246+ removePunctuationLines : true ,
247+ preserveParagraphSpacing : true ,
246248 } ) ;
247249 this . files = [ ] ;
248250 this . results = [ ] ;
@@ -414,6 +416,20 @@ class App {
414416 }
415417 } ) ;
416418 }
419+ if ( this . removePunctuationLines ) {
420+ this . removePunctuationLines . addEventListener ( 'change' , ( ) => {
421+ if ( this . files . length > 0 ) {
422+ this . processFiles ( ) ;
423+ }
424+ } ) ;
425+ }
426+ if ( this . preserveParagraphSpacing ) {
427+ this . preserveParagraphSpacing . addEventListener ( 'change' , ( ) => {
428+ if ( this . files . length > 0 ) {
429+ this . processFiles ( ) ;
430+ }
431+ } ) ;
432+ }
417433 }
418434
419435 handleFiles ( files ) {
You can’t perform that action at this time.
0 commit comments