Skip to content

Commit

Permalink
0.0.2-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Feb 25, 2020
1 parent c7bf114 commit ca6afcf
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 4 deletions.
9 changes: 9 additions & 0 deletions .vscode/changelog.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"changelog": {
"prefix": "changelog",
"body": [
" - **${1:Summary} - [${2:Author}], [issue/${3:Issue #}] [pull/${4:PR #}]**\n\n ${5:Detailed description}\n\n [$2]: https://github.com/$2\n [pull/$4]: https://github.com/EverlastingBugstopper/boxx/pull/$4\n [issue/$3]: https://github.com/EverlastingBugstopper/boxx/issues/$3"
],
"description": "changelog boilerplate"
}
}
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Changelog

## 🐛 0.0.2-beta

### Fixes

- **Properly display `Boxx` when content includes ANSI escapes - [EverlastingBugstopper], [issue/3] [pull/4]**

A common use case for eventual `Boxx` consumers will be displaying boxxed content with colors. Strings include [ANSI escapes](http://ascii-table.com/ansi-escape-sequences.php) which are then interpreted by terminals. Since there is more information, they require more bytes, which means the visual width must be calculated independently from the byte width. `Boxx` now strips ANSI escapes from strings when calculating the padding and margin for the content.

[EverlastingBugstopper]: https://github.com/EverlastingBugstopper
[pull/4]: https://github.com/EverlastingBugstopper/boxx/pull/4
[issue/3]: https://github.com/EverlastingBugstopper/boxx/issues/3

### Maintenance

- Some examples were added to the documentation.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ license = "MIT/Apache-2.0"
name = "boxx"
readme = "README.md"
repository = "https://github.com/EverlastingBugstopper/boxx"
version = "0.0.1-alpha"
version = "0.0.2-beta"

[dependencies]
console = "0.9"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Boxx

_note: this library is still in early stages and updates may contain breaking changes_
_note: this library is still in development and updates may contain breaking changes_

Display informational boxes in the terminal.

Expand All @@ -10,7 +10,7 @@ Your `Cargo.toml` should include `boxx` as a dependency

```toml
[dependencies]
boxx = "0.0.1-alpha"
boxx = "0.0.2-beta"
```

```rust
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#![deny(missing_docs)]
#![deny(missing_debug_implementations)]
#![doc(html_root_url = "https://docs.rs/boxx/0.0.1-alpha")]
#![doc(html_root_url = "https://docs.rs/boxx/0.0.2-beta")]

//! boxx
//!
Expand Down

0 comments on commit ca6afcf

Please sign in to comment.