Packages

Elixir library for parsing and formatting chord sheets in ChordPro, ChordsOverWords, and UltimateGuitar formats.

Current section

Files

Jump to
sonx lib sonx chord_sheet soft_line_break.ex
Raw

lib/sonx/chord_sheet/soft_line_break.ex

defmodule Sonx.ChordSheet.SoftLineBreak do
@moduledoc """
Represents a soft line break in lyrics, typically rendered as a space or optional break point.
"""
use TypedStruct
typedstruct do
field(:content, String.t(), default: " ")
end
@spec new() :: t()
def new, do: %__MODULE__{}
@spec clone(t()) :: t()
def clone(_), do: %__MODULE__{}
end