Added Double Line Style

This commit is contained in:
Michael Teuscher 2019-01-24 15:35:39 +01:00
parent 85b31891ec
commit 3e60b42918
No known key found for this signature in database
GPG Key ID: 3F38EF5228BAF9AF
1 changed files with 16 additions and 1 deletions

View File

@ -39,6 +39,19 @@ var lineStyleChars = map[LineStyle]map[linePart]rune{
vAndRight: '├',
vAndH: '┼',
},
LineStyleDouble: {
hLine: '═',
vLine: '║',
topLeftCorner: '╔',
topRightCorner: '╗',
bottomLeftCorner: '╚',
bottomRightCorner: '╝',
hAndUp: '╩',
hAndDown: '╦',
vAndLeft: '╣',
vAndRight: '╠',
vAndH: '╬',
},
}
// init verifies that all line parts are half-width runes (occupy only one
@ -75,13 +88,15 @@ func (ls LineStyle) String() string {
// lineStyleNames maps LineStyle values to human readable names.
var lineStyleNames = map[LineStyle]string{
LineStyleLight: "LineStyleLight",
LineStyleLight: "LineStyleLight",
LineStyleDouble: "LineStyleDouble",
}
// Supported line styles.
const (
LineStyleNone LineStyle = iota
LineStyleLight
LineStyleDouble
)
// linePart identifies individual line parts.