mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.42k stars 411 forks source link

emmet indent style #391

Open luoyanghero opened 7 years ago

luoyanghero commented 7 years ago

My many code is the following style, so I want to keep it.

                <tr>
                    <td align="right">出盘时间:&nbsp;</td>                                          
                    <td><input id="cprq1" name="cprq1" class="mini-datepicker" format="yyyyMMdd"  
                        showNullItem="true"/> 至
                        <input id="cprq2" name="cprq2" class="mini-datepicker" format="yyyyMMdd"  
                        showNullItem="true"/> </td> 
                    <td  align="right">审批时间:&nbsp;</td>                                             
                    <td>
                        <input id="sprq1" name="sprq1" class="mini-datepicker" format="yyyyMMdd"   
                        showNullItem="true"/> 至
                        <input id="sprq2" name="sprq2" class="mini-datepicker" format="yyyyMMdd"  
                        showNullItem="true"/> </td>
                    <td> </td>                      
                </tr>

But I use emmet, hit d= to auto indent, it becomes ugly.

                <tr>
                    <td align="right">出盘时间:&nbsp;</td>                                          
                    <td><input id="cprq1" name="cprq1" class="mini-datepicker" format="yyyyMMdd"  
                                                                               showNullItem="true"/> 至
                                                                               <input id="cprq2" name="cprq2" class="mini-datepicker" format="yyyyMMdd"  
                                                                                                                                      showNullItem="true"/> </td>   
                    <td  align="right">审批时间:&nbsp;</td>                                             
                    <td>
                        <input id="sprq1" name="sprq1" class="mini-datepicker" format="yyyyMMdd"   
                                                                               showNullItem="true"/> 至
                                                                               <input id="sprq2" name="sprq2" class="mini-datepicker" format="yyyyMMdd"  
                                                                                                                                      showNullItem="true"/> </td>
                    <td> </td>                      
                </tr>

How should I do to keep my-self style? And I also can use emmet or vim basic auto indent function?

mattn commented 6 years ago

What is your expression of emmet?