| View previous topic :: View next topic |
| Author |
Message |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Wed Mar 15, 2006 5:26 pm Post subject: Another technical reason for using styles over direct format |
|
|
I've been pokinga round ODF and noticed something. When a blank line exists in an ODT file, it is represented by this code similar to this in content.xml:
| Code: | | <text:p text:style-name="Text_body"/> |
So don't think that by entering in a whole load of newlines you are hardly adding anything to your file size! If you have hundreds of these it will add a lot to your file size, even when compressed.
With styles you would not have these as the style would properly define the paragraph spacing. Therefore, styles make for cleaner, smaller files. This gives less chance of corruption and makes file operations faster.
Clever people use styles. _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
Westland Super User


Joined: 03 Feb 2006 Posts: 562
|
Posted: Wed Mar 15, 2006 5:32 pm Post subject: |
|
|
Sorry for "crossposting"
My (unanswered, until now, post)
http://www.oooforum.org/forum/viewtopic.phtml?t=33443
is asking if something like
| Quote: | | <text:p text:style-name="Text_body"/> |
can be included on a file to be "interpreted" by Writer.
Post Edit: I'm 100% "Stylist" fan and I fully agree that "space between paragraphs" should be "built in" on paragraph styles definition.
I'm not sure about the real impact on size. That repeated expression will be very easily compacted, by the "zipping" algorithm. _________________ "Do one thing every day that scares you" |
|
| Back to top |
|
 |
|