Skip to content
Snippets Groups Projects
Commit 04bb52dc authored by Arnaud Levy's avatar Arnaud Levy
Browse files

fix

parent bf00f97c
No related branches found
No related tags found
No related merge requests found
...@@ -72,12 +72,12 @@ module Admin::ApplicationHelper ...@@ -72,12 +72,12 @@ module Admin::ApplicationHelper
end end
def prepare_text_for_static(text) def prepare_text_for_static(text)
# Beware, it works only at level one, with 2 spaces indentation = ' ' # Beware, it works only at level one, with 2 spaces
indentation = ' ' strip_tags text.to_s
text = strip_tags text.to_s .dup
text.gsub! "\r\n", "\n" # Remove useless \r .gsub("\r\n", "\n") # Remove useless \r
text.gsub! "\n", "\n#{indentation}" # Indent properly to avoid broken frontmatter .gsub("\n", "\n#{indentation}") # Indent properly to avoid broken frontmatter
text.chomp .chomp
end end
def collection_tree(list, except = nil) def collection_tree(list, except = nil)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment