Skip to content

Cannot indent code that contains a pipe "|" #42

@sambody

Description

@sambody

When I try to indent a whole code block that contains a "|", the indentation doesn't happen. Nothing happens.
Example code:

    // Shortcode for custom language selector
    // Use: [custom_lang_selector]
    function dfx_wpml_custom_language_selector(){
        do_action(' dfx_lang_switcher("fr,nl,en"," | ") ');
    }
    add_shortcode( 'custom_lang_selector', 'dfx_wpml_custom_language_selector' );

Worse, when I try to indent only the line that contains the "|" (line 4 in this case), most of the code is removed. To me it looks like a bug. Maybe an incompatibility with the tables functionality.

Deactivating SmartMarkdown restores the possibilitly of indenting normally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions