[TxMt] Comment command broken in XML/XSL mode

Trevor Harmon trevor at vocaro.com
Mon Jun 26 07:34:26 UTC 2006


The Comment Selection command in the Source bundle has a bug. (Tested  
on the latest repo version.) If you select some markup that has an  
empty line, then hit Cmd-/, the empty line will screw up the comment  
markers. For example:

BEFORE

</SpeakingEvent>
			
<SpeakingEvent>

AFTER

<!-- </SpeakingEvent> -->
<!--
--><!-- <SpeakingEvent> -->

If you then try to uncomment by hitting Cmd-/ again, the block's  
entropy grows:

<!-- <!-- </SpeakingEvent> --> -->
<!-- <!--  -->
<!--  --><!-- <SpeakingEvent> --> -->

Interestingly, the above problem seems to occur only if the selected  
text contains a closing tag (as above).

I tried playing around with the comment.block.xml setting in the XML  
bundle but didn't get anywhere. Anybody know how this could be fixed?

Trevor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060626/28fd52dc/attachment.p7s>


More information about the textmate mailing list