Difference between revisions of "Unclose Lines"

From TED Notepad
m
Line 1: Line 1:
<noinclude>{{manversion|6.0.0.14}}__NOTOC__</noinclude>
+
<noinclude>{{manversion|6.0.0.16|feature}}__NOTOC__</noinclude>
 
====Unclose (Ctrl+Shift+C)====
 
====Unclose (Ctrl+Shift+C)====
  
Takes the very last character of the first line of the selection as a {{field|closing character}}. Then removes the last character on each {{defined|line}} of the selection, if that character is the {{field|closing character}}.
+
Takes the very last character of the first line of the selection as a ''closing character''. Then removes the last character on each {{defined|line}} of the selection, if that character is the ''closing character''.
  
 
Note: This is very similar to the {{feature|Trim Tail Spaces}} tool, but it is not {{defined|white-space}}-oriented only, and thus can be used to remove any common character from the end of lines.
 
Note: This is very similar to the {{feature|Trim Tail Spaces}} tool, but it is not {{defined|white-space}}-oriented only, and thus can be used to remove any common character from the end of lines.
Line 22: Line 22:
 
{{example_end}}
 
{{example_end}}
  
See also {{feature|Trim Tail Spaces}} and {{feature|Shift Right}} tools.
+
See also {{feature|Close Lines}}, {{feature|Trim Tail Spaces}} and {{feature|Shift Lines Right}} tools.
  
 
See also {{feature|Unquote}} tool.
 
See also {{feature|Unquote}} tool.

Revision as of 20:55, 25 April 2011

This section is up to date for TED Notepad version 6.3.1.0.
Control page Control:feature:Unclose Lines

Unclose (Ctrl+Shift+C)

Takes the very last character of the first line of the selection as a closing character. Then removes the last character on each line of the selection, if that character is the closing character.

Note: This is very similar to the Trim Tail Spaces tool, but it is not white-space-oriented only, and thus can be used to remove any common character from the end of lines.

Note: The selection always persists in this tool.

Example:
One Ring to rule them all One Ring to find them One Ring to bring them all and in the darkness bind them
Result:
One Ring to rule them al One Ring to find them One Ring to bring them al and in the darkness bind them

See also Close Lines, Trim Tail Spaces and Shift Lines Right tools.

See also Unquote tool.