File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ const renderConfigs = [
5555 outputName : "resultPresentationFromODP.pdf" ,
5656 } ,
5757 {
58- enabled : false ,
58+ enabled : true ,
5959 templatePath : "../freshtracksback_s4/templates/FreshtracksPresentation.odp" ,
6060 options : {
6161 convertTo : "pptx" ,
Original file line number Diff line number Diff line change @@ -516,6 +516,16 @@ carbone.addFormatters(require("../formatters/condition.js"));
516516carbone . addFormatters ( require ( "../formatters/date.js" ) ) ;
517517carbone . addFormatters ( require ( "../formatters/number.js" ) ) ;
518518carbone . addFormatters ( require ( "../formatters/string.js" ) ) ;
519+ carbone . addFormatters ( {
520+ drop : function ( data , args ) {
521+ // Check if the first argument is 'slide' and if the data is empty
522+ if ( args [ 0 ] === "slide" && ( ! data || data . trim ( ) === "" ) ) {
523+ // Set a flag in the context to indicate that the slide should be dropped
524+ this . isHidden = true ;
525+ }
526+ return data ; // Return the data unchanged
527+ } ,
528+ } ) ;
519529translator . loadTranslations ( params . templatePath ) ;
520530
521531// We must include all locales like this for PKG
You can’t perform that action at this time.
0 commit comments