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
end
def prepare_text_for_static(text)
# Beware, it works only at level one, with 2 spaces
indentation = ' '
text = strip_tags text.to_s
text.gsub! "\r\n", "\n" # Remove useless \r
text.gsub! "\n", "\n#{indentation}" # Indent properly to avoid broken frontmatter
text.chomp
indentation = ' ' # Beware, it works only at level one, with 2 spaces
strip_tags text.to_s
.dup
.gsub("\r\n", "\n") # Remove useless \r
.gsub("\n", "\n#{indentation}") # Indent properly to avoid broken frontmatter
.chomp
end
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