Skip to content

Commit

Permalink
Fixes asciidoctor#1105. Avoid throwing exception in CLI when reading …
Browse files Browse the repository at this point in the history
…input from stdin
  • Loading branch information
robertpanzer committed Aug 20, 2022
1 parent 0ee9689 commit 26f1019
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ For a detailed view of what has changed, refer to the {url-repo}/commits/main[co

== Unreleased

== 2.5.4 (2022-07-26)
Bug Fixes::

* Avoid throwing an exception when using AsciidoctorJ CLI and reading input from stdin (#1105) (@AlexCzar)

== 2.5.5 (2022-07-26)

Improvement::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ private void convertInput(Asciidoctor asciidoctor, Options options, List<File> i

if (inputFiles.size() == 1 && "-".equals(inputFiles.get(0).getName())) {
asciidoctor.convert(readInputFromStdIn(), options);
return;
}

findInvalidInputFile(inputFiles)
Expand Down

0 comments on commit 26f1019

Please sign in to comment.