Skip to content

Commit

Permalink
Remove unnecessary <p> wrapping when posting comments
Browse files Browse the repository at this point in the history
Bug: T271153
  • Loading branch information
edg2s authored and tonisevener committed Jan 15, 2021
1 parent c390921 commit 7452e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wikipedia/Code/TalkPagesController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class TalkPageController {
return
}

let wrappedBody = "<p>\n\n" + body + "\(signatureIfAutoSignEnabled)</p>"
let wrappedBody = "\n\n" + body + "\(signatureIfAutoSignEnabled)"
fetcher.addTopic(to: title, siteURL: siteURL, subject: subject, body: wrappedBody) { (result) in
switch result {
case .success(let result):
Expand Down Expand Up @@ -169,7 +169,7 @@ class TalkPageController {
return
}

let wrappedBody = "<p>\n\n" + body + "\(signatureIfAutoSignEnabled)</p>"
let wrappedBody = "\n\n" + body + "\(signatureIfAutoSignEnabled)"
let talkPageTopicID = topic.objectID
guard let talkPageObjectID = topic.talkPage?.objectID else {
completion(.failure(TalkPageError.topicMissingTalkPageRelationship))
Expand Down

0 comments on commit 7452e8d

Please sign in to comment.