• Resolved ocaso

    (@ocaso)


    Hi, I use your plugin almost a year, there was no problem with it, but now this duplicates last characters of every word.

    Here is an image to see it: https://imgur.com/a/Nd34YZc
    On the left side there is my website, on the right side there is Default Gutenberg Editor.

    This is not conflict with other plugin, because I didn’t update anything in the last 1 year.

    If I deactive your plugin, the duplicated characters disappear.

    After this bug I updated your plugin, but the problem is still valid.

    Can you help me?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Weston Ruter

    (@westonruter)

    Humm. That’s strange. Can you share the underlying block markup you’re using? You can do so by:

    1. Create post
    2. Add code block
    3. Open the menu in the top right corner of the block editor and select “Code editor”
    4. Select all and copy.
    5. Paste here.

    The markup should start with <!-- wp:code ... --> and end with <!-- /wp:code -->

    Thread Starter ocaso

    (@ocaso)

    Here is an empty code block:

    <!-- wp:code -->
    <pre class="wp-block-code"><code></code></pre>
    <!-- /wp:code -->

    Here is a bad code block:

    <!-- wp:code -->
    <pre class="wp-block-code"><code>if (FELTéTEL)
    {
      IGAZ áG
    }
    else
    {
      HAMIS áG
    }</code></pre>
    <!-- /wp:code -->

    You can see the result here: https://webiskola.hu/egyeb/2453/

    UPDATE: I see the problem is with accent characters, if I write “FELTéTEL” the bug is appear, if I write “FELTETEL” the bug isn’t appear.

    • This reply was modified 3 years, 5 months ago by ocaso.
    Thread Starter ocaso

    (@ocaso)

    Can you help me, because accent characters are very important for me?

    Plugin Author Weston Ruter

    (@westonruter)

    I’m not able to reproduce the issue. I just tried adding that to a post and on the frontend I see:

    With line numbers showing and highlighted lines:

    Maybe there’s a problem with your mbstring PHP extension?

    Plugin Author Weston Ruter

    (@westonruter)

    Correction: I can reproduce the issue. I was looking for the accented characters not the final characters.

    I’ve opened a bug for this: https://github.com/westonruter/syntax-highlighting-code-block/issues/400

    Thread Starter ocaso

    (@ocaso)

    Thank you for your help, I am waiting for update or bugfix. Thanks.

    Thread Starter ocaso

    (@ocaso)

    Hey, sorry for the impatience, but when will the problem be solved?

    Plugin Author Weston Ruter

    (@westonruter)

    The problem in highlight.php was fixed and a pull request to update that dependency has just been merged. A new release of the plugin hasn’t been made yet, but there is a plugin build ZIP available here for you to use in the meantime: https://github.com/westonruter/syntax-highlighting-code-block/pull/406#pullrequestreview-709866134

    Thread Starter ocaso

    (@ocaso)

    It works perfectly, thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Plugin duplicates last characters of every word’ is closed to new replies.