Skip to content

Commit

Permalink
空行除去
Browse files Browse the repository at this point in the history
  • Loading branch information
kyukyunyorituryo committed Dec 28, 2023
1 parent 30618f8 commit 020061d
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/com/github/hmdev/web/WebAozoraConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,13 @@ public File convertToAozoraText(String urlString, File cachePath, int interval,
String title = episode.getJSONObject("Work:" + cd).getString("title");
String introduction = episode.getJSONObject("Work:" + cd).getString("introduction");
String author = episode.getJSONObject(episode.getJSONObject("Work:" + cd).getJSONObject("author").getString("__ref")).getString("activityName");
//page["Work:" + cd].tableOfContents
JSONArray toc =episode.getJSONObject("Work:" + cd).getJSONArray("tableOfContents");
JSONArray toc =episode.getJSONObject("Work:" + cd).getJSONArray("tableOfContents");
List<String> page = new ArrayList<String>();
//String [] page =new String[episode.length()];
String [] tocc =new String[toc.length()];
for (int i = 0; i < toc.length(); i++) {

tocc[i]=episode.getJSONObject("Work:" + cd).getJSONArray("tableOfContents").getJSONObject(i).getString("__ref");
for (int j = 0; j < episode.getJSONObject(tocc[i]).getJSONArray("episodeUnions").length(); j++) {

page.add(episode.getJSONObject(tocc[i]).getJSONArray("episodeUnions").getJSONObject(j).getString("__ref"));

}
}
Iterator<String> keys = episode.keys();
Expand Down Expand Up @@ -343,7 +338,6 @@ public File convertToAozoraText(String urlString, File cachePath, int interval,
book[i][2] = sf.format(d);

}
//Arrays.sort(book, Comparator.comparing(a -> a[0]));
String template = """
<h1 id="workTitle"><a href="">$title</a></h1>
<span id="workAuthor-activityName"><a href="">$author</a></span>
Expand Down

0 comments on commit 020061d

Please sign in to comment.