Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openolat
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Zentraler Informatikdienst
Digitale Medien und Lerntechnologien
olat
openolat
Commits
efb22e19
Commit
efb22e19
authored
5 years ago
by
srosse
Browse files
Options
Downloads
Patches
Plain Diff
OO-4602: escape special - from windows
parent
e0d702be
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/org/olat/core/util/pdf/PdfDocument.java
+5
-1
5 additions, 1 deletion
src/main/java/org/olat/core/util/pdf/PdfDocument.java
src/test/java/org/olat/core/util/pdf/PdfDocumentTest.java
+2
-1
2 additions, 1 deletion
src/test/java/org/olat/core/util/pdf/PdfDocumentTest.java
with
7 additions
and
2 deletions
src/main/java/org/olat/core/util/pdf/PdfDocument.java
+
5
−
1
View file @
efb22e19
...
...
@@ -217,7 +217,11 @@ public class PdfDocument {
}
public
static
String
cleanString
(
String
string
)
{
return
string
.
replace
(
'\n'
,
' '
).
replace
(
'\r'
,
' '
).
replace
(
'\t'
,
' '
).
replace
(
'\
u00A0
'
,
' '
);
return
string
.
replace
(
'\n'
,
' '
)
.
replace
(
'\r'
,
' '
)
.
replace
(
'\t'
,
' '
)
.
replace
(
'\
u00A0
'
,
' '
)
.
replace
(
'\u2212'
,
'-'
);
}
public
void
drawLine
(
float
xStart
,
float
yStart
,
float
xEnd
,
float
yEnd
,
float
lineWidth
)
...
...
This diff is collapsed.
Click to expand it.
src/test/java/org/olat/core/util/pdf/PdfDocumentTest.java
+
2
−
1
View file @
efb22e19
...
...
@@ -48,7 +48,8 @@ public class PdfDocumentTest {
{
"Hello\tworld"
,
"Hello world"
},
{
"Hello\n\tworld"
,
"Hello world"
},
{
"Hello\n\tworld\u00A0"
,
"Hello world "
},
{
"Hello \u3044"
,
"Hello \u3044"
}
{
"Hello \u3044"
,
"Hello \u3044"
},
{
"Hello \u2212"
,
"Hello -"
}
});
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment