# Autoformat bug?

**URL:** <https://forum.kirupa.com/t/autoformat-bug/250510>\
**Category:** Uncategorized\
**Created:** [January 30, 2008, 3:39am UTC](https://forum.kirupa.com/t/autoformat-bug/250510 "2008-01-30T03:39:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![juniverse](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@juniverse](https://forum.kirupa.com/u/juniverse)\
**Post date:** [January 30, 2008, 3:39am UTC](https://forum.kirupa.com/t/autoformat-bug/250510/1 "2008-01-30T03:39:33Z")

</div>

This works find when I type it into the AS3 actions editor:

function funct(X:Number):Number {  
return 3\*(X - 1)  
}  
trace(funct(1));// 0

But if I ask the editor to autoformat it, I get:

function funct(X:Number):Number {  
return 3 \* X - 1;  
}  
trace(funct(1));// 2

In general, the editor seems to remove brackets after a return. Is this a bug, or am I missing something about what can follow a return? This behavior caused a bunch of headaches until I noticed it was happening.
