diff --git a/src/mastoapi.cpp b/src/mastoapi.cpp
index fb2543c..1f71280 100644
--- a/src/mastoapi.cpp
+++ b/src/mastoapi.cpp
@@ -14,9 +14,10 @@
* along with this program. If not, see .
*/
-#include "exceptions.hpp"
#include "mastoapi.hpp"
+#include "exceptions.hpp"
+
#include
#include
@@ -33,14 +34,14 @@ using std::string_view;
MastoAPI::MastoAPI(ProfileData &data)
: _profile{data}
, _instance{_profile.instance, _profile.access_token}
-{
-}
+{}
void MastoAPI::post_item(const Item &item)
{
string title = replacements_apply(item.title);
string link = replacements_apply(item.link);
+ // clang-format off
string status{[&]
{
if (_profile.titles_as_cw)
@@ -59,7 +60,9 @@ void MastoAPI::post_item(const Item &item)
}
return s;
}()};
+ // clang-format on
+ // clang-format off
const size_t len_append{[&]
{
if (_profile.append.empty())
@@ -77,6 +80,7 @@ void MastoAPI::post_item(const Item &item)
}
return _profile.max_size;
}() - link.size() - 2 - len_append};
+ // clang-format off
BOOST_LOG_TRIVIAL(debug)
<< "Maximum text (without link and appendix) length: " << len_max;
diff --git a/src/mastoapi.hpp b/src/mastoapi.hpp
index 2c5653a..a6b662e 100644
--- a/src/mastoapi.hpp
+++ b/src/mastoapi.hpp
@@ -44,4 +44,4 @@ private:
};
} // namespace mastorss
-#endif // MASTORSS_MASTOAPI_HPP
+#endif // MASTORSS_MASTOAPI_HPP