Skip to content

Commit

Permalink
bump crengine: CSS caption-side, SVG, CSS and table fixes (#1644)
Browse files Browse the repository at this point in the history
Includes:
- SVG: support embedded base64 images when no doc
- epub.css: hide <nav hidden="">
- Tables: fix possible specified width overflow
- Tables: fix caption and table width interactions
- CSS/Tables: add support for "caption-side: top/bottom"
- gatherNodeMatchingRulesets(): avoid messing document cache
- gatherStylesheetsMatchingRulesets(): add with_m_stylesheet param
  • Loading branch information
poire-z committed Jul 25, 2023
1 parent 3fa77f1 commit ae48a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cre.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2619,8 +2619,12 @@ static int getHTMLFromXPointers(lua_State *L) {
static int getStylesheetsMatchingRulesets(lua_State *L) {
CreDocument *doc = (CreDocument*) luaL_checkudata(L, 1, "credocument");
lUInt32 nodeDataIndex = (lUInt32) lua_tointeger(L, 2);
bool with_m_stylesheet = true;
if (lua_isboolean(L, 3)) {
with_m_stylesheet = lua_toboolean(L, 3);
}
lString8Collection matches;
doc->text_view->gatherStylesheetsMatchingRulesets(nodeDataIndex, matches);
doc->text_view->gatherStylesheetsMatchingRulesets(nodeDataIndex, matches, with_m_stylesheet);
lua_createtable(L, matches.length(), 0);
for (int i = 0; i < matches.length(); i++) {
lua_pushstring(L, matches[i].c_str());
Expand Down

0 comments on commit ae48a62

Please sign in to comment.