From a7287f4f937cbacee4bfc647b93e586cc016a4c6 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sun, 23 Aug 2015 09:34:42 +0200 Subject: [PATCH] Disable the handlebars auto-indent feature closes #6339 --- Changelog.md | 1 + config/initializers/handlebars_assets.rb | 1 + 2 files changed, 2 insertions(+) create mode 100644 config/initializers/handlebars_assets.rb diff --git a/Changelog.md b/Changelog.md index 1e939f580..4fe0620b9 100644 --- a/Changelog.md +++ b/Changelog.md @@ -17,6 +17,7 @@ * Fix conversations view with no contacts [#6266](https://github.com/diaspora/diaspora/pull/6266) * Links in the left sidebar are now clickable on full width [#6267](https://github.com/diaspora/diaspora/pull/6267) * Guard against passing nil into person\_image\_tag [#6286](https://github.com/diaspora/diaspora/pull/6286) +* Prevent Handlebars from messing up indentation of pre tags [#6339](https://github.com/diaspora/diaspora/pull/6339) ## Features diff --git a/config/initializers/handlebars_assets.rb b/config/initializers/handlebars_assets.rb new file mode 100644 index 000000000..94bf58554 --- /dev/null +++ b/config/initializers/handlebars_assets.rb @@ -0,0 +1 @@ +HandlebarsAssets::Config.options = {preventIndent: true}