diff --git a/lib/Epub/Epub/Page.cpp b/lib/Epub/Epub/Page.cpp index dcb00392..96b3b2dc 100644 --- a/lib/Epub/Epub/Page.cpp +++ b/lib/Epub/Epub/Page.cpp @@ -1,11 +1,10 @@ #include "Page.h" +#include #include #include #include -#include - namespace { constexpr uint16_t MAX_PATH_LEN = 512; } // namespace @@ -43,8 +42,7 @@ void PageImage::render(GfxRenderer& renderer, const int fontId, const int xOffse Bitmap bitmap(file, true); const auto err = bitmap.parseHeaders(); if (err != BmpReaderError::Ok) { - Serial.printf("[%lu] [PGE] Failed to parse bitmap %s: %s\n", millis(), bmpPath.c_str(), - Bitmap::errorToString(err)); + Serial.printf("[%lu] [PGE] Failed to parse bitmap %s: %s\n", millis(), bmpPath.c_str(), Bitmap::errorToString(err)); file.close(); return; } diff --git a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp index 712f845a..53009f33 100644 --- a/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp +++ b/lib/Epub/Epub/parsers/ChapterHtmlSlimParser.cpp @@ -1,7 +1,5 @@ #include "ChapterHtmlSlimParser.h" -#include "../../Epub.h" - #include #include #include @@ -10,6 +8,7 @@ #include #include +#include "../../Epub.h" #include "../Page.h" const char* HEADER_TAGS[] = {"h1", "h2", "h3", "h4", "h5", "h6"}; @@ -175,8 +174,7 @@ bool ChapterHtmlSlimParser::generateImageBmp(const std::string& imageHref, std:: return false; } - const bool success = - JpegToBmpConverter::jpegFileToBmpStreamWithSize(jpgFile, bmpFile, viewportWidth, viewportHeight); + const bool success = JpegToBmpConverter::jpegFileToBmpStreamWithSize(jpgFile, bmpFile, viewportWidth, viewportHeight); jpgFile.close(); bmpFile.close(); SdMan.remove(tmpJpgPath.c_str());