Skip to content

[BUG] Multi line strings break vertical alignment #13

@Delta456

Description

@Delta456

Describe the bug
The vertical alignment of the Box in the right will be broken if multi line strings are used.

To Reproduce
Steps to reproduce the behavior:

Box := box.New(box.Config{Px: 2, Py: 5, Type: Single})
Box.Println(`Box CLI Maker 
		foo foobar`, `Highly Customized Terminal Box Maker  
		bar`)

Expected behavior
The vertical alignment shouldn't break.

Screenshots / Logs
If applicable, add screenshots or logs to help explain your problem.

image

Versions (please complete the following information, if relevant):

  • Software version: v1.3.2
  • OS: Windows 10
  • Golang version: 1.15.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions