MCPcopy Create free account
hub / github.com/chasingboy/Xtools / concat

Function concat

utils.py:294–304  ·  view source on GitHub ↗
(lines,chars,text)

Source from the content-addressed store, hash-verified

292 lines, text = text.split('\n'), ''
293
294 def concat(lines,chars,text):
295 chars = chars.split('\n')
296 if len(chars) != len(lines):
297 sublime.message_dialog('[waring] The number of text lines is not same')
298 return None
299
300 for x,line in enumerate(lines):
301 line = (chars[x] + line) if cmd == 'prefix-line' else (line+chars[x])
302 text = text + line + '\n'
303
304 return text
305
306 if 'line' in cmd:
307 return concat(lines,chars,text)

Callers 1

add_prefix_suffixFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected