Skip to content

Commit b4d8821

Browse files
committed
replace nbsp with a regular space
this makes quoting (You)s and the like consistent with vanilla 4chan the nbsp is stripped server-side
1 parent 920bd1e commit b4d8821

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/Quotelinks/QuoteCT.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ QuoteCT =
55
if Conf['Comment Expansion']
66
ExpandComment.callbacks.push @node
77

8-
# \u00A0 is nbsp
98
@mark = $.el 'span',
10-
textContent: '\u00A0(Cross-thread)'
9+
textContent: ' (Cross-thread)'
1110
className: 'qmark-ct'
1211
Callbacks.Post.push
1312
name: 'Mark Cross-thread Quotes'

src/Quotelinks/QuoteOP.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ QuoteOP =
55
if Conf['Comment Expansion']
66
ExpandComment.callbacks.push @node
77

8-
# \u00A0 is nbsp
98
@mark = $.el 'span',
10-
textContent: '\u00A0(OP)'
9+
textContent: ' (OP)'
1110
className: 'qmark-op'
1211
Callbacks.Post.push
1312
name: 'Mark OP Quotes'

src/Quotelinks/QuoteYou.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,8 @@ QuoteYou =
2222
if Conf['Comment Expansion']
2323
ExpandComment.callbacks.push @node
2424

25-
# \u00A0 is nbsp
2625
@mark = $.el 'span',
27-
textContent: '\u00A0(You)'
26+
textContent: ' (You)'
2827
className: 'qmark-you'
2928
Callbacks.Post.push
3029
name: 'Mark Quotes of You'

src/classes/Post.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,8 @@ class Post
209209
file
210210

211211
@deadMark =
212-
# \u00A0 is nbsp
213212
$.el 'span',
214-
textContent: '\u00A0(Dead)'
213+
textContent: ' (Dead)'
215214
className: 'qmark-dead'
216215

217216
kill: (file, index=0) ->

0 commit comments

Comments
 (0)