Automattic / Automattic/syntaxhighlighter

SH Code Block misaligning lines on front end

Open
#233 2 comments 0 reactions 0 assignees View on GitHub
[Type] Bug
Dominant language
CSS
Stars
251
Forks
81
PR merge metrics
No merged PRs in 30d

Description

In the [forums](https://wordpress.org/support/topic/block-code-formatting-does-not-align/), a user states he is no longer able to properly align his code (comments) in the post edit screen using the SH block, although it appears correctly aligned on the frontend.

See:
his post edit screen: https://snipboard.io/KVCgqU.jpg
his front end: https://snipboard.io/vHh7kW.jpg

---

I tested this, and had the opposite happen!

I'm able to align in my post edit screen :

https://cloudup.com/clxNHXZMY6v

but the code is NOT aligned on the frontend:

https://cloudup.com/cJ96dvq7rAv

The alignment works properly when using the regular Code block:

https://cloudup.com/cnsYW1kDsCz

WP: 5.9.1
SHE: 3.6.1

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.