## format_output()


Format a result for display.


Usage


``` python
format_output(
    result,
    fmt="text",
)
```


## Parameters


`result: Result`  
The result to format.

`fmt: str = ``"text"`  
Output format (text, json, html).


## Returns


`str`  
Formatted output.
