Sublime Forum

Reindent problems

#1

Hi everyone, I’m having issues with realingment command when using php / html mixed for example when I have the following block

	<?php if (is_user_logged_in()): ?>
		<a href="/submit" class='btn-large btn-warning' id='button_submit_entry'> <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
	<?php else: ?>
		<a href="#need_login" class='btn-large btn-warning' id='button_submit_entry' data-toggle="modal" > <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
	<?php endif ?>

and run the reindent command on the entire doc

	<?php if (is_user_logged_in()): ?>
	<a href="/submit" class='btn-large btn-warning' id='button_submit_entry'> <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
<?php else: ?>
	<a href="#need_login" class='btn-large btn-warning' id='button_submit_entry' data-toggle="modal" > <i class='icon-white icon-plus'></i>Submit Contest Entry</a>
<?php endif ?>

anyone got any ideas what can be done?

0 Likes