import sublime, sublime_plugin

class CopyrightmeCommand(sublime_plugin.TextCommand):
	def run(self, edit, text):
		region = self.view.visible_region()

		if text not in self.view.substr(region):
			self.view.split_by_newlines(region)
			self.view.insert(edit, 0, text + '\n\n')
			

import sublime, sublime_plugin

class CopyrightmeCommand(sublime_plugin.TextCommand):
	def run(self, edit, text):
		region = self.view.visible_region()

		if text not in self.view.substr(region):
			self.view.insert(edit, 0, text + '\n\n')
			

Remove line splitting in view
Remove line splitting in view
  import sublime, sublime_plugin
  
  class CopyrightmeCommand(sublime_plugin.TextCommand):
  	def run(self, edit, text):
  		region = self.view.visible_region()
  
  		if text not in self.view.substr(region):
- 			self.view.split_by_newlines(region)
  			self.view.insert(edit, 0, text + '\n\n')
  			
  
Remove line splitting in view
## Code Before:
import sublime, sublime_plugin

class CopyrightmeCommand(sublime_plugin.TextCommand):
	def run(self, edit, text):
		region = self.view.visible_region()

		if text not in self.view.substr(region):
			self.view.split_by_newlines(region)
			self.view.insert(edit, 0, text + '\n\n')
			

## Instruction:
Remove line splitting in view
## Code After:
import sublime, sublime_plugin

class CopyrightmeCommand(sublime_plugin.TextCommand):
	def run(self, edit, text):
		region = self.view.visible_region()

		if text not in self.view.substr(region):
			self.view.insert(edit, 0, text + '\n\n')
			
