Skip to content

Commit c8f5909

Browse files
authored
Update angles.py
1 parent 6957eb0 commit c8f5909

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎astropy/coordinates/angles.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def to_string(
325325
if format == "latex" or format == "latex_inline":
326326
unit_string = unit_string[1:-1]
327327
format_func = func
328-
func = lambda x: format_func(x) + unit_string
328+
func = lambda x: format_func(x) + (" "*(format != "unicode")) + unit_string + (" "*(format != "unicode"))
329329

330330
def do_format(val):
331331
# Check if value is not nan to avoid ValueErrors when turning it into

0 commit comments

Comments
 (0)