Don't hardcode newline
This commit is contained in:
parent
945bc44550
commit
46e4aeb3e9
@ -22,6 +22,7 @@
|
|||||||
import collections
|
import collections
|
||||||
import functools
|
import functools
|
||||||
import math
|
import math
|
||||||
|
import os
|
||||||
import re
|
import re
|
||||||
import html
|
import html
|
||||||
import enum
|
import enum
|
||||||
@ -253,7 +254,7 @@ class HintActions:
|
|||||||
except utils.ClipboardEmptyError:
|
except utils.ClipboardEmptyError:
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
new_content = old_content + '\n' + new_content
|
new_content = os.linesep.join([old_content, new_content])
|
||||||
utils.set_clipboard(new_content, selection=sel)
|
utils.set_clipboard(new_content, selection=sel)
|
||||||
|
|
||||||
msg = "Yanked URL to {}: {}".format(
|
msg = "Yanked URL to {}: {}".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user