I’m seeing weird behavior with email formatting that contains code in blocks surrounded by triple backticks. In an article I have not published I’ve got json documents in those types of blocks. For instance like:
{
"some content": {
"contents"
}
}
In the web view this looks fine, but in test emails the first line starts at the left of the text box, but each line afterwards is indented about 28 extra spaces in. I removed each listing and recreated them by pasting in text where I verified there are no tabs, and still got the same results.
This affects all code listings in my document, not just json. Any idea what could cause something like that?
I using the Hosted Ghost Pro - 6.25.0+98c41c1, and the source theme, v1.5.2. Could theme be the issue? This has worked for me in the past without formatting hiccups.
I thought I’d ask before reporting a bug in case I’m doing something dumb.
Sounds like you found a bug! Your theme doesn’t interact with email, so if the email rendering is wrong, that’s definitely a bug. Can you please share what specific email client you are using? And perhaps a screenshot? That’ll help the team track it down.
The email looks incorrect in the preview that Ghost generates for the email. A test email looks the same, with the same unexpected indentation, in the gmail web client and in the iPhone built in email client. Here’s a screenshot from gmail on the web. In this screenshot the content is correct, but I’d expect each line after the first to be moved to the left.
I also checked the Gmail app on ios, and it renders the indentation wrong there also, but differently wrong. I think it might just have a different width for the field and is wrapping lines sooner than in this screenshot.
(Screenshot of email preview)
I’ve got the same issue myself, running Ghost Pro 6.26.0 on my own VPS. Contacted support and they mentioned that it’s a known bug that’s being looked into. Didn’t hear an ETA on when it will get fixed.