@@ -66,12 +66,13 @@ bool looksLikeTag(llvm::StringRef Contents) {
6666// /
6767// / **FIXME:** handle the case when the client does support HTML rendering in
6868// / markdown. For this, the LSP server needs to check the
69- // / [supportsHtml capability](https://github.com/microsoft/language-server-protocol/issues/1344)
69+ // / [supportsHtml
70+ // / capability](https://github.com/microsoft/language-server-protocol/issues/1344)
7071// / of the client.
7172// /
7273// / \param C The character to check.
73- // / \param After The string that follows \p C . This is used to determine if \p C is
74- // / part of a tag or an entity reference.
74+ // / \param After The string that follows \p C .
75+ // This is used to determine if \p C is part of a tag or an entity reference.
7576// / \returns true if \p C should be escaped, false otherwise.
7677bool needsLeadingEscape (char C, llvm::StringRef After) {
7778 switch (C) {
@@ -245,7 +246,8 @@ class CodeBlock : public Block {
245246std::string indentLines (llvm::StringRef Input) {
246247 assert (!Input.ends_with (" \n " ) && " Input should've been trimmed." );
247248 std::string IndentedR;
248- // We'll add 2 spaces after each new line which is not followed by another new line.
249+ // We'll add 2 spaces after each new line which is not followed by another new
250+ // line.
249251 IndentedR.reserve (Input.size () + Input.count (' \n ' ) * 2 );
250252 for (size_t I = 0 ; I < Input.size (); ++I) {
251253 char C = Input[I];
@@ -326,7 +328,7 @@ llvm::StringRef Paragraph::chooseMarker(llvm::ArrayRef<llvm::StringRef> Options,
326328 return Options.front ();
327329}
328330
329- bool Paragraph::punctuationIndicatesLineBreak (llvm::StringRef Line) const {
331+ bool Paragraph::punctuationIndicatesLineBreak (llvm::StringRef Line) const {
330332 constexpr llvm::StringLiteral Punctuation = R"txt( .:,;!?)txt" ;
331333
332334 Line = Line.rtrim ();
@@ -515,9 +517,7 @@ Paragraph &Document::addParagraph() {
515517 return *static_cast <Paragraph *>(Children.back ().get ());
516518}
517519
518- void Document::addRuler () {
519- Children.push_back (std::make_unique<Ruler>());
520- }
520+ void Document::addRuler () { Children.push_back (std::make_unique<Ruler>()); }
521521
522522void Document::addCodeBlock (std::string Code, std::string Language) {
523523 Children.emplace_back (
0 commit comments