Skip to content

Commit

Permalink
Added support for Windows end of line in completion proposals.
Browse files Browse the repository at this point in the history
  • Loading branch information
ylussaud committed Jan 25, 2024
1 parent 2daba17 commit fa89664
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020 Obeo.
* Copyright (c) 2020, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -62,7 +62,8 @@ public String getDescription() {
final String res;

if (service.getOrigin().getDocumentation() != null) {
res = service.getOrigin().getDocumentation().getBody().getValue().replace("\n", "<br>");
res = service.getOrigin().getDocumentation().getBody().getValue().replaceAll("(\\r\\n)|\\n",
"<br>");
} else {
res = "";
}
Expand Down
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2020 Obeo.
* Copyright (c) 2020, 2024 Obeo.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
Expand Down Expand Up @@ -62,7 +62,8 @@ public String getDescription() {
final String res;

if (service.getOrigin().getDocumentation() != null) {
res = service.getOrigin().getDocumentation().getBody().getValue().replace("\n", "<br>");
res = service.getOrigin().getDocumentation().getBody().getValue().replaceAll("(\\r\\n)|\\n",
"<br>");
} else {
res = "";
}
Expand Down

0 comments on commit fa89664

Please sign in to comment.