pub fn scan(text: &str) -> Result<Canvas>
Expand description

Prepares a canvas containing the textual definition of decision table. This function traverse the input text line-by-line and adds non empty lines of text to the canvas. Adding lines to canvas begins with the line starting with the character (U+250C BOX DRAWINGS LIGHT DOWN AND RIGHT), because this is the top left corner of every decision table definition. Adding lines to canvas ends with the line ending with the character (U+2518 BOX DRAWINGS LIGHT UP AND LEFT), because this is the bottom right corner of every decision table definition. Shorter lines are filled up with additional characters to form a rectangular area.