@@ -66,12 +66,13 @@ bool looksLikeTag(llvm::StringRef Contents) {
66
66
// /
67
67
// / **FIXME:** handle the case when the client does support HTML rendering in
68
68
// / 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)
70
71
// / of the client.
71
72
// /
72
73
// / \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.
75
76
// / \returns true if \p C should be escaped, false otherwise.
76
77
bool needsLeadingEscape (char C, llvm::StringRef After) {
77
78
switch (C) {
@@ -245,7 +246,8 @@ class CodeBlock : public Block {
245
246
std::string indentLines (llvm::StringRef Input) {
246
247
assert (!Input.ends_with (" \n " ) && " Input should've been trimmed." );
247
248
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.
249
251
IndentedR.reserve (Input.size () + Input.count (' \n ' ) * 2 );
250
252
for (size_t I = 0 ; I < Input.size (); ++I) {
251
253
char C = Input[I];
@@ -326,7 +328,7 @@ llvm::StringRef Paragraph::chooseMarker(llvm::ArrayRef<llvm::StringRef> Options,
326
328
return Options.front ();
327
329
}
328
330
329
- bool Paragraph::punctuationIndicatesLineBreak (llvm::StringRef Line) const {
331
+ bool Paragraph::punctuationIndicatesLineBreak (llvm::StringRef Line) const {
330
332
constexpr llvm::StringLiteral Punctuation = R"txt( .:,;!?)txt" ;
331
333
332
334
Line = Line.rtrim ();
@@ -515,9 +517,7 @@ Paragraph &Document::addParagraph() {
515
517
return *static_cast <Paragraph *>(Children.back ().get ());
516
518
}
517
519
518
- void Document::addRuler () {
519
- Children.push_back (std::make_unique<Ruler>());
520
- }
520
+ void Document::addRuler () { Children.push_back (std::make_unique<Ruler>()); }
521
521
522
522
void Document::addCodeBlock (std::string Code, std::string Language) {
523
523
Children.emplace_back (
0 commit comments