Skip to content

Commit

Permalink
Merge pull request #1106 from robertpanzer/fix-1105-cli-stdin
Browse files Browse the repository at this point in the history
Fixes #1105. Avoid throwing exception in CLI when reading input from …
  • Loading branch information
robertpanzer authored Aug 20, 2022
2 parents 3d1d047 + e310d28 commit e245377
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Improvement::
Bug Fixes::

* Cell nodes do not inherit from StructuralNode (#1086) (@rahmanusta)
* Avoid throwing an exception when using AsciidoctorJ CLI and reading input from stdin (#1105) (@AlexCzar)

Build 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 e245377

Please sign in to comment.