mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: couldn't start a 4-spaces block on the first line of a post
This commit is contained in:
parent
22fbae8556
commit
61db6c95d2
4 changed files with 14 additions and 3 deletions
|
@ -272,5 +272,12 @@ describe PostRevisor do
|
|||
}.to_not change { topic.excerpt }
|
||||
end
|
||||
end
|
||||
|
||||
it "doesn't strip starting whitespaces" do
|
||||
subject.revise!(post.user, " <-- whitespaces --> ")
|
||||
post.reload
|
||||
post.raw.should == " <-- whitespaces -->"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue