diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:51:01 -0400 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2025-07-12 12:51:01 -0400 |
| commit | 3f3442f05b2d9aa1b6c2b2ec63bc20b6dbf9eeaa (patch) | |
| tree | 8ab1a99102f0541c7abbeafde43f58ed7c866731 | |
| parent | Add linebuffer destroy to error case (diff) | |
| download | cli-3f3442f05b2d9aa1b6c2b2ec63bc20b6dbf9eeaa.zip | |
Release v0.1.2v0.1.2
| -rw-r--r-- | CHANGELOG.md | 7 | ||||
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | doc/justify.1 | 5 |
3 files changed, 12 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e3e2b9f..bc9c6a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.1.2 - 2025-06-12 + +### Fixed + +- Removed an unnecessary `memset` operation after each word was + appended to a linebuffer. + ## 0.1.1 - 2025-06-12 ### Fixed diff --git a/CMakeLists.txt b/CMakeLists.txt index 904f5e6..35aba96 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.29) -project(justify VERSION 0.1.1) +project(justify VERSION 0.1.2) include_directories(${CMAKE_SOURCE_DIR}/include) set(CMAKE_C_STANDARD 11) diff --git a/doc/justify.1 b/doc/justify.1 index ef7f3e9..376f92d 100644 --- a/doc/justify.1 +++ b/doc/justify.1 @@ -1,4 +1,4 @@ -.TH JUSTIFY 1 "July 2025" "justify 0.1.1" "User Commands" +.TH JUSTIFY 1 "July 2025" "justify 0.1.2" "User Commands" .SH NAME justify \- format and justify text to a specified line width .SH SYNOPSIS @@ -44,6 +44,9 @@ An error occurred (e.g., read error). .SH NOTES Before appending a word to the current line, the program ensures there is enough space for the word (and a space if not the first word). If not enough space remains, the current line is flushed (justified) and a new line is started. +.SH LIMITATIONS +The program assumes ASCII text. This means if multi-byte characters are provided, the output would not be justified correctly. + .SH AUTHOR Eugene Triguba <hello@eugenetriguba.com> |