Skip to content

Commit 18b6b82

Browse files
committed
v1.3.1 release
1 parent 9758b76 commit 18b6b82

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ func main() {
5050

5151
### `Box struct` Methods
5252

53-
`Box.Print(title, lines string)` prints Box from the specified arguements.
53+
`Box.Print(title, lines string)` prints Box from the specified arguments.
5454

5555
- Parameters
5656
- `title` : Title of the Box
5757
- `lines` : Content to be written inside the Box
5858

59-
`Box.Println(title, lines string)` prints Box in a newline from the specified arguements.
59+
`Box.Println(title, lines string)` prints Box in a newline from the specified arguments.
6060

6161
- Parameters
6262
- `title` : Title of the Box

util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ func (b Box) findAlign() string {
2626
return centerAlign
2727
} else if b.Con.ContentAlign == "Right" {
2828
return rightAlign
29+
} else if b.Con.ContentAlign == "Left" {
30+
return leftAlign
2931
} else {
3032
fmt.Fprintln(os.Stderr, "Invalid Alignment provided, using default Alignment")
3133
return leftAlign

0 commit comments

Comments
 (0)