From 889c8e6555aabc39d07d1c096cab1053f64064e2 Mon Sep 17 00:00:00 2001 From: Kelrap Date: Tue, 12 Aug 2025 09:14:56 -0400 Subject: [PATCH] feat: Use small versions of bullet point characters --- lib/src/utils/html_to_text.dart | 2 +- test/html_to_text_test.dart | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/src/utils/html_to_text.dart b/lib/src/utils/html_to_text.dart index 110d715e..665a1b09 100644 --- a/lib/src/utils/html_to_text.dart +++ b/lib/src/utils/html_to_text.dart @@ -140,7 +140,7 @@ class HtmlToText { .join('\n'); } - static const _listBulletPoints = ['●', '○', '■', '‣']; + static const _listBulletPoints = ['•', '◦', '▪', '‣']; static List _listChildNodes( _ConvertOpts opts, diff --git a/test/html_to_text_test.dart b/test/html_to_text_test.dart index 27ba947a..886c8575 100644 --- a/test/html_to_text_test.dart +++ b/test/html_to_text_test.dart @@ -35,7 +35,7 @@ void main() { '(cw spiders) ███████████████████████', 'a test case': 'a test case', 'List of cute animals:\n
    \n
  • Kittens
  • \n
  • Puppies
  • \n
  • Snakes
    (I think they\'re cute!)
  • \n
\n(This list is incomplete, you can help by adding to it!)': - '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!)', + '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!)', 'fox': '*fox*', 'fox': '*fox*', 'fox': '**fox**', @@ -67,15 +67,15 @@ void main() { '
fox
floof
fluff': '> > fox\n> floof\nfluff', '
  • hey
    • a
    • b
  • foxies
': - '● hey\n ○ a\n ○ b\n● foxies', + '• hey\n ◦ a\n ◦ b\n• foxies', '
  1. a
  2. b
': '1. a\n2. b', '
  1. a
  2. b
': '42. a\n43. b', '
  1. a
    1. aa
    2. bb
  2. b
': '1. a\n 1. aa\n 2. bb\n2. b', '
  1. a
    • aa
    • bb
  2. b
': - '1. a\n ○ aa\n ○ bb\n2. b', + '1. a\n ◦ aa\n ◦ bb\n2. b', '
  • a
    1. aa
    2. bb
  • b
': - '● a\n 1. aa\n 2. bb\n● b', + '• a\n 1. aa\n 2. bb\n• b', 'bunnyfox': 'fox', 'fox
floof': 'fox\n----------\nfloof', '

fox


floof

': 'fox\n----------\nfloof',