| Author | DaveJarvis <email> |
|---|---|
| Date | 2022-08-27 18:42:19 GMT-0700 |
| Commit | bf6d91cc5b870a6cd66e20c17456f40d73c235ed |
| Parent | 78835f0 |
| Delta | 7 lines added, 4 lines removed, 3-line increase |
| import com.keenwrite.processors.markdown.MarkdownProcessor; | ||
| -import com.keenwrite.processors.r.RBootstrapController; | ||
| -import com.keenwrite.processors.r.RInlineEvaluator; | ||
| -import com.keenwrite.processors.r.RVariableProcessor; | ||
| import static com.keenwrite.io.FileType.RMARKDOWN; |
| metadata.forEach( | ||
| - ( key, value ) -> result.put( key, map.interpolate( value ) ) | ||
| + ( key, value ) -> { | ||
| + final var interpolated = map.interpolate( value ); | ||
| + | ||
| + if( !interpolated.isEmpty() ) { | ||
| + result.put( key, interpolated ); | ||
| + } | ||
| + } | ||
| ); | ||
| result.put( "count", wordCount( doc ) ); |