Feature: Merge/split paragraphs tool in ebook editor

Bug #1912958 reported by John Beard
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fix Released

Bug Description

When creating an ePub from a PDF, sometimes paragraphs are incorrectly not merged. It possible to fix this by deleting the </p><p ...> between the two halves of the paragraph (either manually, or using a Saved Search), but it would be much more convenient to be able to click a paragraph and select "Merge with next" and have it automatically attempt to merge with a following adjacent paragraph.

I used the following regex: <\s*/\s*[pP]\s*>\s*<\s*[pP].*?> which seems functional, if fairly simple-minded. It not expected for this to do anything clever like preserve the second (false) paragraph's style or class.

Similarly, it does happen that paragraph is falsely merged. In that case, splitting by adding a </p><p XXX> (where XXX is the same as the current paragraph's) would be another useful tool.

description: updated
summary: - Feature: Merge paragraphs tool in ebook editor
+ Feature: Merge/split paragraphs tool in ebook editor
description: updated
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1912958

I dont see much point in a merge tool, the regex works fine. I will
however add a split tool which clones the non-id attibutes of the tag
being split.

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.