Skip to content

Commit 2a81bcf

Browse files
authored
Merge pull request #2120 from Kelrap/kelrap/add-small-bullets
feat: Use small versions of bullet point characters
2 parents 174656b + 889c8e6 commit 2a81bcf

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/src/utils/html_to_text.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class HtmlToText {
140140
.join('\n');
141141
}
142142

143-
static const _listBulletPoints = <String>['', '', '', '‣'];
143+
static const _listBulletPoints = <String>['', '', '', '‣'];
144144

145145
static List<String> _listChildNodes(
146146
_ConvertOpts opts,

test/html_to_text_test.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void main() {
3535
'(cw spiders) ███████████████████████',
3636
'<img src="test.gif" alt="a test case" />': 'a test case',
3737
'List of cute animals:\n<ul>\n<li>Kittens</li>\n<li>Puppies</li>\n<li>Snakes<br/>(I think they\'re cute!)</li>\n</ul>\n(This list is incomplete, you can help by adding to it!)':
38-
'List of cute animals:\n Kittens\n Puppies\n Snakes\n (I think they\'re cute!)\n(This list is incomplete, you can help by adding to it!)',
38+
'List of cute animals:\n Kittens\n Puppies\n Snakes\n (I think they\'re cute!)\n(This list is incomplete, you can help by adding to it!)',
3939
'<em>fox</em>': '*fox*',
4040
'<i>fox</i>': '*fox*',
4141
'<strong>fox</i>': '**fox**',
@@ -67,15 +67,15 @@ void main() {
6767
'<blockquote><blockquote>fox</blockquote>floof</blockquote>fluff':
6868
'> > fox\n> floof\nfluff',
6969
'<ul><li>hey<ul><li>a</li><li>b</li></ul></li><li>foxies</li></ul>':
70-
' hey\n a\n b\n foxies',
70+
' hey\n a\n b\n foxies',
7171
'<ol><li>a</li><li>b</li></ol>': '1. a\n2. b',
7272
'<ol start="42"><li>a</li><li>b</li></ol>': '42. a\n43. b',
7373
'<ol><li>a<ol><li>aa</li><li>bb</li></ol></li><li>b</li></ol>':
7474
'1. a\n 1. aa\n 2. bb\n2. b',
7575
'<ol><li>a<ul><li>aa</li><li>bb</li></ul></li><li>b</li></ol>':
76-
'1. a\n aa\n bb\n2. b',
76+
'1. a\n aa\n bb\n2. b',
7777
'<ul><li>a<ol><li>aa</li><li>bb</li></ol></li><li>b</li></ul>':
78-
' a\n 1. aa\n 2. bb\n b',
78+
' a\n 1. aa\n 2. bb\n b',
7979
'<mx-reply>bunny</mx-reply>fox': 'fox',
8080
'fox<hr>floof': 'fox\n----------\nfloof',
8181
'<p>fox</p><hr><p>floof</p>': 'fox\n----------\nfloof',

0 commit comments

Comments
 (0)