Skip to content

Commit

Permalink
Allow pagemarkers in <v> tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Jul 18, 2024
1 parent 3381a74 commit 5ccf9b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<h1>
<h1>
<img src="docs/books.svg" style="vertical-align:middle; width:8%" align="absmiddle"/>
<span style="vertical-align:middle;">&nbsp;&nbsp;FB2 converter to EPUB2, KEPUB, MOBI 7/8, AZW3</span>
</h1>
Expand All @@ -18,7 +18,7 @@ Russian [WiKi](https://github.com/rupor-github/fb2converter/wiki/fb2converter) a
- no "default" external configuration, path to configuration file has to be supplied - always
- no overwriting of configuration parameters from command line, options either specified in configuration file or on command line
- slightly different hyphenation algorithm (no hyphensReplaceNBSP)
- fixes and echancements in toc.ncx generation
- fixes and enhancements in toc.ncx generation
- go differs in how it processes images, it is less forgiving than Python's PILLOW and do not have lazy decoding (see use_broken_images configuration option)
- small changes in result formatting, for example:
- chapter-end vignette would not be added if chapter does not have text paragraphs
Expand Down
4 changes: 2 additions & 2 deletions processor/xhtml.go
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ func (p *Processor) transfer(from, to *etree.Element, decorations ...string) err

// add node text
if len(text) > 0 {
p.formatText(text, from.Tag == "p", false, inner)
p.formatText(text, from.Tag == "p" || from.Tag == "v", false, inner)
}

if processChildren {
Expand Down Expand Up @@ -542,7 +542,7 @@ func (p *Processor) transfer(from, to *etree.Element, decorations ...string) err

// and do not forget node tail
if len(tail) > 0 {
p.formatText(tail, from.Tag == "p", true, inner)
p.formatText(tail, from.Tag == "p" || from.Tag == "v", true, inner)
}
return nil
}
Expand Down

0 comments on commit 5ccf9b2

Please sign in to comment.