````
```{#lst-prefs .python lst-cap="Sum Function" filename=sum.py}
def sum(a, b):
    sum = a + b
    print(f'Sum: {sum}`)
    return sum
```
````

<img width="896" alt="image" src="https://user-images.githubusercontent.com/285675/187291268-12dd5601-c98f-4502-8b6a-3517c5b949a0.png">

(Thanks, @jpmorr)

cscheid
2022-08-29T20:22:27Z
cscheid
bug
v1.3
closed
listing caption interacts badly with listing filename
https://github.com/quarto-dev/quarto-cli/issues/2195