remove the padding of code tag
raise error if there is no script to be imported