Describe the bug
When the ContentAlign
is set to Left
/Right
and the TitlePos
is not set to Inside
, the first line of the content is still aligned to the center.
To Reproduce
package main import "github.com/Delta456/box-cli-maker/v2" func main() { bx := box.New(box.Config{ Px: 2, Py: 0, Type: "Single", ContentAlign: "Left", Color: "Green", TitlePos: "Top" }) bx.Print("System Info", "Lorem Ipsum\nfoo bar hello world\n123456 abcdefghijk") }
Expected behavior
The first line of the content should be aligned based on ContentAlign
.
┌ System Info ───────────────────────────────────────────┐
│ OS: linux ubuntu │
│ Arch: x86_64 │
│ CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz x 8 │
│ RAM: 7.7 GiB │
└────────────────────────────────────────────────────────┘
Screenshots / Logs
┌ System Info ───────────────────────────────────────────┐
│ OS: linux ubuntu │
│ Arch: x86_64 │
│ CPU: Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz x 8 │
│ RAM: 7.7 GiB │
└────────────────────────────────────────────────────────┘
Versions (please complete the following information, if relevant):
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4