Hugo: toml: Error from escaped backslash in multi-line string

Created on 3 Jan 2019  路  3Comments  路  Source: gohugoio/hugo

Refer to https://github.com/BurntSushi/toml/issues/237, https://github.com/gcushen/hugo-academic/issues/852, and associated discussions linked from those pages.

A large number of users have updated Hugo to v0.53+ and are unable to build their sites due to the line break bug in the version of Go TOML which Hugo is compiled against.

Earlier versions of Hugo, such as Hugo v0.50, appear not to suffer from this bug. I suggest reverting to the last known working version of Go TOML.

Bug Keep Upstream

Most helpful comment

This is the version Hugo runs with: https://github.com/BurntSushi/toml/commit/a368813c5e64

Which is several years old. There is nothing to roll back in that library, and this needs to be fixed upstream.

All 3 comments

This is the version Hugo runs with: https://github.com/BurntSushi/toml/commit/a368813c5e64

Which is several years old. There is nothing to roll back in that library, and this needs to be fixed upstream.

It is the problem of \\ and <br>, the code of academic is changed. Just modify your config.toml file, then, it will work.BurntSush/toml

This issue has been automatically marked as stale because it has not had recent activity. The resources of the Hugo team are limited, and so we are asking for your help.
If this is a bug and you can still reproduce this error on the master branch, please reply with all of the information you have about it in order to keep the issue open.
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
This issue will automatically be closed in the near future if no further activity occurs. Thank you for all your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

geddski picture geddski  路  3Comments

vielmetti picture vielmetti  路  3Comments

artelse picture artelse  路  3Comments

MunifTanjim picture MunifTanjim  路  3Comments

carandraug picture carandraug  路  3Comments