| Author | DaveJarvis <email> |
|---|---|
| Date | 2022-11-18 20:44:27 GMT-0800 |
| Commit | ecc09ae559e33c7406818ae06c3f4002ccd137a8 |
| Parent | cfb12e1 |
| Delta | 40 lines added, 17 lines removed, 23-line increase |
| if( (result = thisChunkLength - thatChunkLength) == 0 ) { | ||
| for( var i = 0; i < thisChunkLength; i++ ) { | ||
| - if( (result = thisChunk.charAt( i ) - thatChunk.charAt( i )) != 0 ) { | ||
| + final var diff = thisChunk.charAt( i ) - thatChunk.charAt( i ); | ||
| + result = diff; | ||
| + | ||
| + if( result != 0 ) { | ||
| return result; | ||
| } |
| final Processor<String> processor; | ||
| final Function<String, String> evaluator; | ||
| - final List<Extension> extensions = new ArrayList<>(); | ||
| + final List<Extension> result = new ArrayList<>(); | ||
| if( mediaType == TEXT_R_MARKDOWN ) { | ||
| - extensions.add( RInlineExtension.create( context ) ); | ||
| + result.add( RInlineExtension.create( context ) ); | ||
| processor = IDENTITY; | ||
| evaluator = new RInlineEvaluator( context ); | ||
| } | ||
| else { | ||
| processor = new VariableProcessor( IDENTITY, context ); | ||
| evaluator = processor; | ||
| } | ||
| // Add typographic, table, strikethrough, and similar extensions. | ||
| - extensions.addAll( super.createExtensions( context ) ); | ||
| + result.addAll( super.createExtensions( context ) ); | ||
| - extensions.add( ImageLinkExtension.create( context ) ); | ||
| - extensions.add( TeXExtension.create( processor, context ) ); | ||
| - extensions.add( FencedBlockExtension.create( processor, evaluator, context ) ); | ||
| + result.add( ImageLinkExtension.create( context ) ); | ||
| + result.add( TeXExtension.create( processor, context ) ); | ||
| + result.add( FencedBlockExtension.create( processor, evaluator, context ) ); | ||
| if( context.isExportFormat( ExportFormat.NONE ) ) { | ||
| - extensions.add( CaretExtension.create( context ) ); | ||
| + result.add( CaretExtension.create( context ) ); | ||
| } | ||
| - extensions.add( DocumentOutlineExtension.create( processor ) ); | ||
| - return extensions; | ||
| + result.add( DocumentOutlineExtension.create( processor ) ); | ||
| + return result; | ||
| } | ||
| } |
| //@formatter:off | ||
| - entry( KEY_UI_FONT_EDITOR_NAME, asStringProperty( FONT_NAME_EDITOR_DEFAULT ) ), | ||
| - entry( KEY_UI_FONT_EDITOR_SIZE, asDoubleProperty( FONT_SIZE_EDITOR_DEFAULT ) ), | ||
| - entry( KEY_UI_FONT_PREVIEW_NAME, asStringProperty( FONT_NAME_PREVIEW_DEFAULT ) ), | ||
| - entry( KEY_UI_FONT_PREVIEW_SIZE, asDoubleProperty( FONT_SIZE_PREVIEW_DEFAULT ) ), | ||
| - entry( KEY_UI_FONT_PREVIEW_MONO_NAME, asStringProperty( FONT_NAME_PREVIEW_MONO_NAME_DEFAULT ) ), | ||
| - entry( KEY_UI_FONT_PREVIEW_MONO_SIZE, asDoubleProperty( FONT_SIZE_PREVIEW_MONO_SIZE_DEFAULT ) ), | ||
| + entry( | ||
| + KEY_UI_FONT_EDITOR_NAME, | ||
| + asStringProperty( FONT_NAME_EDITOR_DEFAULT ) | ||
| + ), | ||
| + entry( | ||
| + KEY_UI_FONT_EDITOR_SIZE, | ||
| + asDoubleProperty( FONT_SIZE_EDITOR_DEFAULT ) | ||
| + ), | ||
| + entry( | ||
| + KEY_UI_FONT_PREVIEW_NAME, | ||
| + asStringProperty( FONT_NAME_PREVIEW_DEFAULT ) | ||
| + ), | ||
| + entry( | ||
| + KEY_UI_FONT_PREVIEW_SIZE, | ||
| + asDoubleProperty( FONT_SIZE_PREVIEW_DEFAULT ) | ||
| + ), | ||
| + entry( | ||
| + KEY_UI_FONT_PREVIEW_MONO_NAME, | ||
| + asStringProperty( FONT_NAME_PREVIEW_MONO_NAME_DEFAULT ) | ||
| + ), | ||
| + entry( | ||
| + KEY_UI_FONT_PREVIEW_MONO_SIZE, | ||
| + asDoubleProperty( FONT_SIZE_PREVIEW_MONO_SIZE_DEFAULT ) | ||
| + ), | ||
| entry( KEY_UI_WINDOW_X, asDoubleProperty( WINDOW_X_DEFAULT ) ), | ||
| entry( KEY_UI_SKIN_CUSTOM, asFileProperty( SKIN_CUSTOM_DEFAULT ) ), | ||
| - entry( KEY_UI_PREVIEW_STYLESHEET, asFileProperty( PREVIEW_CUSTOM_DEFAULT ) ), | ||
| + entry( | ||
| + KEY_UI_PREVIEW_STYLESHEET, asFileProperty( PREVIEW_CUSTOM_DEFAULT ) | ||
| + ), | ||
| entry( KEY_LANGUAGE_LOCALE, asLocaleProperty( LOCALE_DEFAULT ) ), | ||