Skip to content
This repository has been archived by the owner on Mar 10, 2022. It is now read-only.

Commit

Permalink
screens/details: correctly account for empty field values
Browse files Browse the repository at this point in the history
  • Loading branch information
tmplt committed Jul 8, 2019
1 parent 3fe95b8 commit dd9ec9d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](https://semver.org)
* Downloader: uncaught exception on missing `resolve()` plugin function.
* Correctly look for `--author` option, not `--authors`.
* Screens/details: "Serie" -> "Series"
* Screens/details: Correctly print empty fields.

## [v0.8.0] - 2019-05-26

Expand Down
4 changes: 4 additions & 0 deletions src/tui/screens/item_details.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ namespace bookwyrm::tui::screen {
for (const auto str : substrings) {
print(indent, y++, str);
}

if (substrings.empty()) {
y++;
}
}
}

Expand Down

0 comments on commit dd9ec9d

Please sign in to comment.