Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Scrub Windows line endings.
Browse files Browse the repository at this point in the history
  • Loading branch information
gchallen committed Jun 11, 2021
1 parent 104bb48 commit a366f7b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
}
subprojects {
group = "com.github.cs125-illinois.questioner"
version = "2021.6.2"
version = "2021.6.3"
tasks.withType<KotlinCompile> {
val javaVersion = JavaVersion.VERSION_1_8.toString()
sourceCompatibility = javaVersion
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/kotlin/save/ParseJava.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import org.intellij.markdown.html.HtmlGenerator
import java.io.File

data class ParsedJavaFile(val path: String, val contents: String) {
constructor(file: File) : this(file.path, file.readText())
constructor(file: File) : this(file.path, file.readText().replace("\r\n", "\n"))

init {
require(path.endsWith(".java")) { "Can only parse Java files" }
Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/kotlin/save/ParseKotlin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import org.intellij.markdown.html.HtmlGenerator
import java.io.File

data class ParsedKotlinFile(val path: String, val contents: String) {
constructor(file: File) : this(file.path, file.readText())
constructor(file: File) : this(file.path, file.readText().replace("\r\n", "\n"))

init {
require(path.endsWith(".kt")) { "Can only parse Kotlin files" }
Expand Down

0 comments on commit a366f7b

Please sign in to comment.