mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 16:29:25 +08:00
13 lines
185 B
Ruby
13 lines
185 B
Ruby
module UserNotificationsHelper
|
|
|
|
def indent(text, by=2)
|
|
spacer = " " * by
|
|
result = ""
|
|
text.each_line do |line|
|
|
result << spacer << line
|
|
end
|
|
result
|
|
end
|
|
|
|
end
|