Skip to content

Commit

Permalink
Sanitise unicode input (FEniCS#111)
Browse files Browse the repository at this point in the history
* Fix lint

* Allow ufl2unicode to handle e.g. scalars

Co-authored-by: nbouziani <[email protected]>
  • Loading branch information
2 people authored and pbrubeck committed Oct 10, 2022
1 parent 6e284f2 commit 3004838
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ufl/formatting/ufl2unicode.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def ufl2unicode(expression):
preprocessed_form = form_data.preprocessed_form
return form2unicode(preprocessed_form, form_data)
else:
return expression2unicode(expression)
return expression2unicode(ufl.as_ufl(expression))


def expression2unicode(expression, argument_names=None, coefficient_names=None):
Expand Down

0 comments on commit 3004838

Please sign in to comment.