View Single Post
Old 09-25-2010, 05:22 PM   #1
DTM
Intentionally Left Blank
DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.DTM ought to be getting tired of karma fortunes by now.
 
DTM's Avatar
 
Posts: 172
Karma: 300106
Join Date: Feb 2006
Location: Royal Oak, MI, USA
Device: Nook STR
Sigil, HTML Tidy or PEBCAK?

I don't know if this is an issue with Sigil, HTML Tidy or (ahem) the user.

I created a book using Sigil, containing several chapters with xhtml filenames "1stDay.xhtml", "2ndDay.xhtml", ... , "30thDay.xhtml". I then created an "Index" chapter, containing numerous links to places within the other chapters. These included references such as: <a href="../Text/23rdDay.xhtml#PSM23">.

When I was done editing, I found that several links were broken. When I opened the book in Sigil to check on the code, I discovered that, randomly, the chapter references in the links were changed. For example, the above was changed to: <a href="../Text/3rdDay.xhtml#PSM23">. This didn't happen on all of the links, but when it did, in every case, the alteration was that the first digit in the chapter name was dropped. There are more details, but I'll save those for the issue report, if there is one.

I was able to fix it by inserting a letter at the beginning of each file name. Apparently, there is a problem with files that begin with numerals.

So here is the question: Does this look like a bug in Sigil for which I should open an issue, a problem with HTML Tidy that the Sigil folks can't do anything about, or is it simply forbidden to start an xhtml file name with a numeral (a rule I'm not aware of)?


(*PEBCAK: Problem Exists Between Chair And Keyboard)
DTM is offline   Reply With Quote