Skip to content

Commit

Permalink
fix singleton for prepending .asciidoctorconfig information (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Sep 10, 2019
1 parent 842150a commit 52bdecc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ This document provides a high-level view of the changes introduced by release.
[[releasenotes]]
== Release notes

=== 0.30.5 (preview, available from Github releases)

- fix singleton for prepending .asciidoctorconfig information (#325)

=== 0.30.4 (preview, available from Github releases)

- while JavaFX preview forces PNG diagram for readability, browser and PDF should use diagram in the format specified in the source (#325)
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/asciidoc/intellij/AsciiDoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected boolean removeEldestEntry(Map.Entry<String, Asciidoctor> eldest) {

private static MaxHashMap instances = new MaxHashMap();

private static PrependConfig prependConfig;
private static PrependConfig prependConfig = new PrependConfig();

private com.intellij.openapi.diagnostic.Logger log =
com.intellij.openapi.diagnostic.Logger.getInstance(AsciiDoc.class);
Expand Down Expand Up @@ -165,7 +165,6 @@ private Asciidoctor initWithExtensions(List<String> extensions, boolean springRe
try {
asciidoctor = Asciidoctor.Factory.create();
asciidoctor.registerLogHandler(logHandler);
prependConfig = new PrependConfig();
asciidoctor.javaExtensionRegistry().preprocessor(prependConfig);
// disable JUL logging of captured messages
// https://github.com/asciidoctor/asciidoctorj/issues/669
Expand Down

0 comments on commit 52bdecc

Please sign in to comment.