• I am not using Gutenberg for various reasons.

    Whenever I mark text as “code” for a block of raw code (be it Bash or whatever), it has two leading spaces. When I am editing it, there is no sign of a space. How do I eliminate this double space?

    For example, I want the code to appear like this:

    #!/bin/bash
    echo "test"
    echo "line 3"

    But it appears like this:

      #!/bin/bash
    echo "test"
    echo "line 3"
Viewing 1 replies (of 1 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    It works in the block editor with a code block and with a preformatted block with the classic editor. I don’t get a double space in either.

    This may be a plugin or theme conflict. Please attempt to disable all plugins, and use one of the default (Twenty*) themes. If the problem goes away, enable them one by one to identify the source of your troubles.

Viewing 1 replies (of 1 total)
  • The topic ‘Why does the first line of code indent if the I mark it as a block of code?’ is closed to new replies.