Skip to content

Commit

Permalink
Fix with img tags not working
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl committed Mar 2, 2018
1 parent f8b0d4b commit b8faba2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions richtext/parse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ function M.parse(text, word_settings)
assert(text)
assert(word_settings)
local all_words = {}
while #text > 0 do
repeat
local before, tag, params, text_in_tag, after = find_tag(text)
-- no more tags? Split and add the entire string
if not tag then
Expand All @@ -161,9 +161,9 @@ function M.parse(text, word_settings)
for _,word in ipairs(inner_words) do
all_words[#all_words + 1] = word
end

text = after
end
until text == ""
return all_words
end

Expand Down

0 comments on commit b8faba2

Please sign in to comment.