David PHAM-VAN

Fix tabs and other spaces placeholder

@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 - Implement PointDataSet for Chart 6 - Implement PointDataSet for Chart
7 - Implement PdfPageLabels 7 - Implement PdfPageLabels
8 - Typo: rename "litteral" with "literal" 8 - Typo: rename "litteral" with "literal"
  9 +- Fix tabs and other spaces placeholder
9 10
10 ## 3.7.4 11 ## 3.7.4
11 12
@@ -773,7 +773,11 @@ class RichText extends Widget with SpanningWidget { @@ -773,7 +773,11 @@ class RichText extends Widget with SpanningWidget {
773 773
774 for (var index = 0; index < text.length; index++) { 774 for (var index = 0; index < text.length; index++) {
775 final rune = text[index]; 775 final rune = text[index];
776 - if (rune == 0x0a) { 776 + const spaces = {
  777 + 0x0a, 0x09, 0x00A0, 0x1680, 0x2000, 0x2001, 0x2002, 0x2003, 0x2004, //
  778 + 0x2005, 0x2006, 0x2007, 0x2008, 0x2009, 0x200A, 0x202F, 0x205F, 0x3000
  779 + };
  780 + if (spaces.contains(rune)) {
777 continue; 781 continue;
778 } 782 }
779 783
@@ -905,6 +909,7 @@ class RichText extends Widget with SpanningWidget { @@ -905,6 +909,7 @@ class RichText extends Widget with SpanningWidget {
905 909
906 for (var line = 0; line < spanLines.length; line++) { 910 for (var line = 0; line < spanLines.length; line++) {
907 final words = spanLines[line].split(RegExp(r'\s')); 911 final words = spanLines[line].split(RegExp(r'\s'));
  912 + print(words);
908 for (var index = 0; index < words.length; index++) { 913 for (var index = 0; index < words.length; index++) {
909 final word = words[index]; 914 final word = words[index];
910 915