Skip to content

Commit 36f98a4

Browse files
author
Nathan Merrill
committed
Fixed downloader not trimming language name, and compile errors on Jitpack
1 parent 817a1ec commit 36f98a4

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,4 @@ task sourcesJar(type: Jar, dependsOn: classes) {
4141

4242
artifacts {
4343
archives sourcesJar
44-
archives javadocJar
4544
}

src/main/java/com/nmerrill/kothcomm/communication/Downloader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private void saveSubmission(String html){
6969
return;
7070
}
7171
String[] parts = header.split(",");
72-
String language = parts.length < 2 ? "" : parts[1];
72+
String language = parts.length < 2 ? "" : parts[1].trim();
7373
List<Element> codeBlocks = document.select("pre>code");
7474
if (codeBlocks.size() == 0){
7575
System.out.println("No code blocks in submission:"+header);

0 commit comments

Comments
 (0)