oasegips / sigil

Automatically exported from code.google.com/p/sigil
GNU General Public License v3.0
0 stars 0 forks source link

Splitting chapters in Book view causes duplicate chapters in last section. #450

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start Sigil 0.2.1
2. In the Section0001.xhtml book view, enter the following lines:
Chapter 1
test
Chapter 2
test
3. Highlight each "Chapter" line and set it to "Heading 1"
4. Look at the TOC, there will be (as expected):
Chapter 1
Chapter 2
5. Place the cursor at the end of the "test" line in Chapter 1.
6. Insert a "Chapter Break"
7. Look at the TOC, there will be:
Chapter 1
Chapter 1
Chapter 2
8. Looking at the two Section000[12].xhtml files does not show where the 
additional "Chapter 1" is coming from.
8. Save the epub book, re-open it, and Section0002.xhtml will now contain both 
Chapter 1 and Chapter 2.  Section0001.xhtml will only contain Chapter 1.

What is the expected output? What do you see instead?

The entire original Section is copied to the last chapter when doing chapter 
splits.  It doesn't matter how many times you insert chapter splits, the last 
one will always contain the entire original Section.  All the other chapter 
splits have the expected contents.  The book view (and code view) of the last 
chapter appear okay, until you save the book and re-open it.

What version of the product are you using? On what operating system?

I am using Sigil 0.2.1 on Windows 7 32 bit. I have uninstalled 0.2.1, 
re-installed 0.2.0 and the problem went away (the chapter split worked as it 
should for the last chapter).  I uninstalled 0.2.0 and re-installed 0.2.1 and 
the splits stopped working again.  This seems to be a problem with 0.2.1.

Please provide any additional information below. If your source file
(SGF/EPUB/HTML/etc) is required to fully understand the problem, please
attach it to this issue. Read the ReportingIssues wiki page before
submitting!

I have found that if you do the chapter split for the last chapter in code 
view, the contents of the last Section seems to have the correct contents.

Original issue reported on code.google.com by kevin.me...@gmail.com on 19 Jun 2010 at 11:20

GoogleCodeExporter commented 9 years ago
A great issue report. Detailed, thorough and step-by-step. If only more users 
could write such nice issues... 

Original comment by Strahinja.Markovic@gmail.com on 20 Jun 2010 at 11:40

GoogleCodeExporter commented 9 years ago
This issue was closed by revision ecd4c8f721.

Original comment by Strahinja.Markovic@gmail.com on 20 Jun 2010 at 11:55

GoogleCodeExporter commented 9 years ago
Issue 458 has been merged into this issue.

Original comment by Strahinja.Markovic@gmail.com on 20 Jun 2010 at 6:56

GoogleCodeExporter commented 9 years ago

Original comment by Strahinja.Markovic@gmail.com on 13 Aug 2010 at 12:19