mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: BBCode was trimming leading space in [code] blocks
This commit is contained in:
@@ -188,7 +188,7 @@ Discourse.Dialect.replaceBlock({
|
||||
rawContents: true,
|
||||
|
||||
emitter: function(blockContents) {
|
||||
var inner = blockContents.join("\n").replace(/^\s+/,'');
|
||||
var inner = blockContents.join("\n");
|
||||
return ['p', ['pre', ['code', {'class': Discourse.SiteSettings.default_code_lang}, inner]]];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user