Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2022-05-08 09:08:22 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e344dc25d9dd82f6bb94c92834498636676f35c7
e344dc25
1 parent
d49b58b4
Fix tabs and other spaces placeholder
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletions
pdf/CHANGELOG.md
pdf/lib/src/widgets/text.dart
pdf/CHANGELOG.md
View file @
e344dc2
...
...
@@ -6,6 +6,7 @@
-
Implement PointDataSet for Chart
-
Implement PdfPageLabels
-
Typo: rename "litteral" with "literal"
-
Fix tabs and other spaces placeholder
## 3.7.4
...
...
pdf/lib/src/widgets/text.dart
View file @
e344dc2
...
...
@@ -773,7 +773,11 @@ class RichText extends Widget with SpanningWidget {
for
(
var
index
=
0
;
index
<
text
.
length
;
index
++)
{
final
rune
=
text
[
index
];
if
(
rune
==
0x0a
)
{
const
spaces
=
{
0x0a
,
0x09
,
0x00A0
,
0x1680
,
0x2000
,
0x2001
,
0x2002
,
0x2003
,
0x2004
,
//
0x2005
,
0x2006
,
0x2007
,
0x2008
,
0x2009
,
0x200A
,
0x202F
,
0x205F
,
0x3000
};
if
(
spaces
.
contains
(
rune
))
{
continue
;
}
...
...
@@ -905,6 +909,7 @@ class RichText extends Widget with SpanningWidget {
for
(
var
line
=
0
;
line
<
spanLines
.
length
;
line
++)
{
final
words
=
spanLines
[
line
].
split
(
RegExp
(
r'\s'
));
print
(
words
);
for
(
var
index
=
0
;
index
<
words
.
length
;
index
++)
{
final
word
=
words
[
index
];
...
...
Please
register
or
login
to post a comment