08-07-2009, 04:25 AM | #1 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Sigil Inserting hard line wraps at ~100 characters
I noticed this earlier, but hadn't really quantified it. Sigil is inserting hard line breaks into content so that no line can go beyond the 100 character mark.
Needless to say this isn't particularly desirable even if it's invisible in the final output. Worst impact I've stumbled upon is that when search and replace is added this is going to break some intended searches. I just discovered this the hard way when I copied some code from Sigil into a standard text editor to do a quick regex find/replace - the hard line wraps created a number of situations where my regex no longer matched. |
08-07-2009, 04:39 AM | #2 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
Clarification - apparently the hard wraps are only inserted when opening an HTML source file. Not sure under what other situations they are inserted. Sigil seems fully capable of supporting long lines otherwise.
|
08-07-2009, 05:02 AM | #3 |
The Grand Mouse 高貴的老鼠
Posts: 71,504
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
|
I'm sure Valloric would say, please open an issue and attatch a sample HTML source file that shows this problem.
|
08-07-2009, 07:51 AM | #4 | ||
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
Quote:
Hard line breaks were the solution. Back then at least. You could edit in large docs even on lower end computers, which is important. As I've said, I'll look into adding some sort of fast wrapping, but I doubt it will be possible. You'll probably just get an option to switch from line wrapping to hard line breaks. Quote:
And pdurrant is right: create an issue for this. No need to attach a source file since this is not a bug but a design decision. |
||
08-07-2009, 09:50 AM | #5 |
Wizard
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
|
I had a hunch it might be a design decision. I guess that reasoning makes sense, note the option I'd prefer is just to not wrap lines at all. Disabling wrapping completely is usually the first preference I enable in my editors.
It should be possible to make wrapping less intensive, I know a lot of editors I use don't seem to have problems, even with really large documents. I'll open a case. |
08-07-2009, 10:04 AM | #6 |
frumious Bandersnatch
Posts: 7,516
Karma: 18512745
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
It's probably safest to add linebreaks after block elements (<p>, <hX>...), then soft-wrap the contents.
|
08-07-2009, 11:00 AM | #7 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
removing hard line endings | Mostly Math | Calibre | 2 | 06-01-2010 11:18 PM |
Sigil 1.6 - deleting blank line very slow | lol | Sigil | 2 | 12-24-2009 11:54 AM |
Unwrapping hard line breaks across all input formats | ldolse | Calibre | 17 | 05-10-2009 11:31 PM |
Digitimes wraps up electronic paper | TadW | News | 1 | 07-21-2007 09:35 AM |
PRS-500 BD suggestion - line spacing under 100% | pitolee | Sony Reader Dev Corner | 0 | 05-30-2007 04:50 AM |