Prevent unwanted newlines from backslashes in code blocks

Hello,

My Hugo version:

$ hugo env
Hugo Static Site Generator v0.62.1-A1518704 windows/amd64 BuildDate: 2020-01-01T17:39:35Z
GOOS="windows"
GOARCH="amd64"
GOVERSION="go1.13.4"

I have some mark down like:

Get a dump of the DB.

mysqldump \
  --single-transaction \
  --quick \
  --lock-tables=false \
  --routines \
  --triggers \
  -d lsservdcato >  /tmp/xxx.schema.sql

So the back-slashes there are part of the bash script command, but when rendered in Hugo, it is both displaying the backslashes and adding unwanted new lines, as per the image below:

Is there a setting to stop this?

Rob
:slight_smile:

Hi there,

I tested your snippet in my local Hugo site and I don’t see those extra newlines. Do you have your code in a repo somewhere we can have a look at to replicate?