[TxMt] [bug] re-indent pasted text

Allan Odgaard allan at macromates.com
Fri Sep 23 10:34:20 UTC 2005


On 23/09/2005, at 10.39, Ruben Debeerst wrote:

> When I have a text like this:
> [...]
> and copy the 3rd line (the _hole_ line) and paste it between the  
> 3rd and 4th line, I get:

The increaseIndentPattern for HTML was wrong. If you want to fix it  
yourself, it's the Miscellaneous preferences item (Bundle Editor) in  
the HTML bundle, where the pattern should say (it had \\> instead of \ 
\b):

     increaseIndentPattern = "(<(html|head|body|title|table|tr|td|ul| 
ol|dl|div)\\b[^>]*>|\\{)\\s*$";

Otherwise it'll be fixed in next update (probably out within 24  
hours). To watch for this, you can monitor feed://appcast.textmate.org

> Another problem: If you put the cursor between the starting and  
> ending td-tag and press return, you'll get this:

This is fixed in the recent builds (1.1b17 initially changed how last  
line was indented in snippets, and the smart indent is achieved using  
a snippet on return): http://get.textmate.org (for latest build).





More information about the textmate mailing list