Skip to content

Commit

Permalink
Added Mac-style line endings to selected lines to snippet action regex;
Browse files Browse the repository at this point in the history
closes #38
  • Loading branch information
onecrayon committed Jul 27, 2009
1 parent 11bee7c commit 4f73fe8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/Scripts/selected_lines_to_snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def act(context, first_snippet='', following_snippet='',
# Split the text into lines, maintaining the linebreaks
lines = text.splitlines(True)
# Compile the regex for quicker action on lots of lines
parser = re.compile(r'(\s*)(.*?)(\s*(\r?\n)|$)')
parser = re.compile(r'(\s*)(.*?)(\s*(\r|\r\n|\n)|$)')
# Indent the snippets
first = tea.indent_snippet(context, first_snippet, range)
following = tea.indent_snippet(context, following_snippet, range)
Expand Down

0 comments on commit 4f73fe8

Please sign in to comment.