'
+ innerHTML: <%= grunt.file.read('src/General/html/Build/post.html').replace(/>\s+/g, '>').replace(/\s+
for quote in $$ '.quotelink', container
href = quote.getAttribute 'href'
diff --git a/src/General/Get.coffee b/src/General/Get.coffee
index a5c1a54c1..50d32684b 100644
--- a/src/General/Get.coffee
+++ b/src/General/Get.coffee
@@ -153,30 +153,7 @@ Get =
| \[/?code\]
| \[/?moot\]
| \[/?banned\]
- ///g, (text) ->
- switch text
- when '\n'
- ' '
- when '[b]'
- ''
- when '[/b]'
- ''
- when '[spoiler]'
- ''
- when '[/spoiler]'
- ''
- when '[code]'
- '
'
- when '[/code]'
- '
'
- when '[moot]'
- '
'
- when '[/moot]'
- '
'
- when '[banned]'
- ''
- when '[/banned]'
- ''
+ ///g, Get.parseMarkup
comment = bq.innerHTML
# greentext
@@ -228,3 +205,27 @@ Get =
isArchived: true
Main.callbackNodes Post, [post]
Get.insert post, root, context
+ parseMarkup: (text) ->
+ switch text
+ when '\n'
+ ' '
+ when '[b]'
+ ''
+ when '[/b]'
+ ''
+ when '[spoiler]'
+ ''
+ when '[/spoiler]'
+ ''
+ when '[code]'
+ '
'
+ when '[/code]'
+ '
'
+ when '[moot]'
+ '
'
+ when '[/moot]'
+ '
'
+ when '[banned]'
+ ''
+ when '[/banned]'
+ ''
\ No newline at end of file
diff --git a/src/General/html/Build/post.html b/src/General/html/Build/post.html
new file mode 100644
index 000000000..cf833ebdd
--- /dev/null
+++ b/src/General/html/Build/post.html
@@ -0,0 +1,59 @@
+"""#{if isOP then '' else "
"""
\ No newline at end of file
diff --git a/src/General/lib/post.class b/src/General/lib/post.class
index 8529473ba..ee4391bbf 100644
--- a/src/General/lib/post.class
+++ b/src/General/lib/post.class
@@ -80,7 +80,7 @@ class Post
nodes = $.X './/br|.//text()', bq
i = 0
while node = nodes.snapshotItem i++
- text =+ node.data or '\n'
+ text += node.data or '\n'
@info.comment = text.trim().replace /\s+$/gm, ''
parseQuotes: ->