sources: factor out html-to-dtext code to DText.from_html.

This commit is contained in:
evazion
2017-06-27 15:08:16 -05:00
parent d7690d24b0
commit b880b07387
5 changed files with 59 additions and 84 deletions

View File

@@ -92,8 +92,8 @@ module Sources
should "get the dtext-ified commentary" do
desc = <<-EOS.strip_heredoc.chomp
foo [b]bold[/b] [i]italics[/i] [s]strike[/s] red\r
\r
foo [b]bold[/b] [i]italics[/i] [s]strike[/s] red
http://nijie.info/view.php?id=218944
EOS