Skip to content

Commit

Permalink
use two \ns to make sure a new line is created in markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc committed Jun 22, 2024
1 parent f47d13b commit 2f8afdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nixd/lib/Controller/Hover.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ void Controller::onHover(const TextDocumentPositionParams &Params,
Docs += "? (missing type)";
}
if (Desc->Description) {
Docs += "\n" + Desc->Description.value_or("");
Docs += "\n\n" + Desc->Description.value_or("");
}
Reply(Hover{
.contents =
Expand Down
2 changes: 1 addition & 1 deletion nixd/tools/nixd/test/hover-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ CHECK-NEXT: "jsonrpc": "2.0",
CHECK-NEXT: "result": {
CHECK-NEXT: "contents": {
CHECK-NEXT: "kind": "markdown",
CHECK-NEXT: "value": " (hello type)\ntest"
CHECK-NEXT: "value": " (hello type)\n\ntest"
CHECK-NEXT: },
CHECK-NEXT: "range": {
CHECK-NEXT: "end": {
Expand Down

0 comments on commit 2f8afdb

Please sign in to comment.