Commit 9f45e33a authored by lain's avatar lain
Browse files

Proper info.

parent ae6e3cb9
Pipeline #1029 passed with stage
in 2 minutes and 28 seconds
......@@ -50,8 +50,13 @@ def init(ref, socket, transport, _Opts = []) do
end
def info(text) do
text = String.replace(text, ~r/[\t\r\n]/, " ")
"#{text}\tfake\(NULL)\t0\r\n"
text = String.replace(text, ~r/[\t\n]/, " ")
String.split(text, "\r")
|> Enum.map(fn (text) ->
"i#{text}\tfake\(NULL)\t0\r\n"
|> IO.inspect()
end)
|> Enum.join("")
end
def link(name, selector, type \\ 1) do
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment