Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Dec 26, 2023
1 parent dc955c5 commit 426ed35
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
env:
CCACHE_DIR: ${{ github.workspace }}/ccache
CCACHE_MAXSIZE: 500M
CCACHE_KEY_SUFFIX: r19
CCACHE_KEY_SUFFIX: r20

jobs:
build:
Expand Down
10 changes: 6 additions & 4 deletions src/odr/internal/html/document_element.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void html::translate_element(Element element, HtmlWriter &out,
} else if (element.type() == ElementType::link) {
translate_link(element, out, config);
} else if (element.type() == ElementType::bookmark) {
translate_bookmark(element, out);
translate_bookmark(element, out, config);
} else if (element.type() == ElementType::list) {
translate_list(element, out, config);
} else if (element.type() == ElementType::list_item) {
Expand All @@ -46,7 +46,7 @@ void html::translate_element(Element element, HtmlWriter &out,
} else if (element.type() == ElementType::rect) {
translate_rect(element, out, config);
} else if (element.type() == ElementType::line) {
translate_line(element, out);
translate_line(element, out, config);
} else if (element.type() == ElementType::circle) {
translate_circle(element, out, config);
} else if (element.type() == ElementType::custom_shape) {
Expand Down Expand Up @@ -300,7 +300,8 @@ void html::translate_link(Element element, HtmlWriter &out,
out.write_element_end("a");
}

void html::translate_bookmark(Element element, HtmlWriter &out) {
void html::translate_bookmark(Element element, HtmlWriter &out,
const HtmlConfig & /*config*/) {
auto bookmark = element.bookmark();

out.write_element_begin(
Expand Down Expand Up @@ -428,7 +429,8 @@ void html::translate_rect(Element element, HtmlWriter &out,
out.write_element_end("div");
}

void html::translate_line(Element element, HtmlWriter &out) {
void html::translate_line(Element element, HtmlWriter &out,
const HtmlConfig & /*config*/) {
auto line = element.line();
auto style = line.style();

Expand Down
5 changes: 3 additions & 2 deletions src/odr/internal/html/document_element.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ void translate_paragraph(Element element, HtmlWriter &out,
const HtmlConfig &config);
void translate_span(Element element, HtmlWriter &out, const HtmlConfig &config);
void translate_link(Element element, HtmlWriter &out, const HtmlConfig &config);
void translate_bookmark(Element element, HtmlWriter &out);
void translate_bookmark(Element element, HtmlWriter &out,
const HtmlConfig &config);
void translate_list(Element element, HtmlWriter &out, const HtmlConfig &config);
void translate_list_item(Element element, HtmlWriter &out,
const HtmlConfig &config);
Expand All @@ -42,7 +43,7 @@ void translate_image(Element element, HtmlWriter &out,
void translate_frame(Element element, HtmlWriter &out,
const HtmlConfig &config);
void translate_rect(Element element, HtmlWriter &out, const HtmlConfig &config);
void translate_line(Element element, HtmlWriter &out);
void translate_line(Element element, HtmlWriter &out, const HtmlConfig &config);
void translate_circle(Element element, HtmlWriter &out,
const HtmlConfig &config);
void translate_custom_shape(Element element, HtmlWriter &out,
Expand Down

0 comments on commit 426ed35

Please sign in to comment.