Skip to content

Commit 0c38581

Browse files
committed
Normalize CRLF to LF in jekyll-tag included file content
1 parent 9069ef0 commit 0c38581

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

flexmark-ext-jekyll-tag/src/main/java/com/vladsch/flexmark/ext/jekyll/tag/internal/IncludeNodePostProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void process(@NotNull NodeTracker state, @NotNull Node node) {
103103
}
104104

105105
if (resolvedContent.getStatus() == LinkStatus.VALID) {
106-
fileContent = new String(resolvedContent.getContent(), StandardCharsets.UTF_8);
106+
fileContent = new String(resolvedContent.getContent(), StandardCharsets.UTF_8).replace("\r\n", "\n");
107107
}
108108
}
109109
}

0 commit comments

Comments
 (0)