(value string)
| 527 | } |
| 528 | |
| 529 | func formatAlignment(value string) (string, error) { |
| 530 | switch strings.ToLower(strings.TrimSpace(value)) { |
| 531 | case "left", "start": |
| 532 | return "START", nil |
| 533 | case "center", "centre": |
| 534 | return "CENTER", nil |
| 535 | case "right", "end": |
| 536 | return "END", nil |
| 537 | case "justify", "justified": |
| 538 | return "JUSTIFIED", nil |
| 539 | default: |
| 540 | return "", ValidationError("--alignment must be left, center, right, justify, start, end, or justified") |
| 541 | } |
| 542 | } |
| 543 | |
| 544 | func greyColor(intensity float64) *docs.OptionalColor { |
| 545 | return &docs.OptionalColor{Color: &docs.Color{RgbColor: &docs.RgbColor{ |
no test coverage detected