Skip to content

Commit

Permalink
bump CACHE_FILE_FORMAT_VERSION
Browse files Browse the repository at this point in the history
Necessary with the previous commits.
Also add to the hardcoded element lists some tag names that
can be seen in HTML standard and Firefox stylesheets.
  • Loading branch information
poire-z committed Jan 14, 2024
1 parent 52b7e59 commit b5f97c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions crengine/include/fb2def.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ XS_TAG1T( dir ) // similar to "ul"
XS_TAG1T( menu ) // similar to "ul"
// Other non-inline elements present in html5.css
XS_TAG1T( noframes )
XS_TAG1T( search )
XS_TAG1D( listing, true, css_d_block, css_ws_pre ) // similar to "pre"
XS_TAG1D( textarea, true, css_d_block, css_ws_pre ) // similar to "pre"
XS_TAG1D( plaintext, true, css_d_block, css_ws_pre ) // start of raw text (no end tag), not supported
Expand Down Expand Up @@ -227,6 +228,7 @@ XS_TAG1I( u )
XS_TAG1I( acronym )
XS_TAG1I( bdi )
XS_TAG1I( bdo )
XS_TAG1I( blink )
XS_TAG1I( br )
XS_TAG1I( cite ) // conflict between HTML (inline) and FB2 (block): default here to inline (fb2.css puts it back to block)
XS_TAG1I( del )
Expand All @@ -236,6 +238,7 @@ XS_TAG1I( ins )
XS_TAG1I( kbd )
XS_TAG1I( q )
XS_TAG1I( samp )
XS_TAG1I( slot )
XS_TAG1I( span )
XS_TAG1I( sub )
XS_TAG1I( sup )
Expand Down
2 changes: 1 addition & 1 deletion crengine/src/lvtinydom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ extern const int gDOMVersionCurrent = DOM_VERSION_CURRENT;

/// change in case of incompatible changes in swap/cache file format to avoid using incompatible swap file
// increment to force complete reload/reparsing of old file
#define CACHE_FILE_FORMAT_VERSION "3.05.71k"
#define CACHE_FILE_FORMAT_VERSION "3.05.72k"
/// increment following value to force re-formatting of old book after load
#define FORMATTING_VERSION_ID 0x0031

Expand Down

0 comments on commit b5f97c4

Please sign in to comment.