Skip to content

Commit

Permalink
Merge pull request #8 from digitalonboarding/mf/fix-lists-outlook
Browse files Browse the repository at this point in the history
Fixes UL and OL in outlook for
  • Loading branch information
buob authored Jan 23, 2020
2 parents 0bd7a7e + c415107 commit 5c00a3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/draft/block.ex
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ defmodule Draft.Block do
entity_map,
context
) do
"<li>#{apply_ranges(block, entity_map, context)}</li>"
"<li style=\"mso-special-format:numbullet;\">#{apply_ranges(block, entity_map, context)}</li>"
end

def process_block(
%{"type" => "unordered-list-item", "text" => text} = block,
entity_map,
context
) do
"<li>#{apply_ranges(block, entity_map, context)}</li>"
"<li style=\"mso-special-format:bullet;\">#{apply_ranges(block, entity_map, context)}</li>"
end

def header_tags do
Expand Down
1 change: 0 additions & 1 deletion lib/draft/tree.ex
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ defmodule DraftTree do
key: key,
styles: styles,
offset: offset,
length: length,
text: text
},
processor
Expand Down

0 comments on commit 5c00a3f

Please sign in to comment.