Review Request: line heights of empty lines

C. Boemann cbr at boemann.dk
Mon Jan 9 23:27:44 GMT 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/103664/
-----------------------------------------------------------

Review request for Calligra.


Description
-------

Before newyear i removed some characters that shouldn't be there when we load

However that broke lineheights of empty lines. I have now analysed LO/OO and coded the same behaviour into 
Calligra. The filters will have to follow, but at least the last line thing is the same as the filters do

Anyway here is the commit msg:

    Make the line heights work like LibreOffice/OpenOffice when in combination with line breaks
        1) a blank line is affected by the line break after
        2) a line with contents is not affected by the linebreak
        3) following line is never affected by the line break
        4) a final line if blank can have it's height specified by a special textstyle


Diffs
-----

  libs/kotext/opendocument/KoTextLoader.cpp eb9c677 
  libs/kotext/opendocument/KoTextWriter_p.cpp 0d04bcb 
  libs/kotext/styles/KoCharacterStyle.h c13972c 
  libs/kotext/styles/KoParagraphStyle.h bccc252 
  libs/textlayout/KoTextLayoutArea.cpp aef7357 
  libs/textlayout/tests/TestBlockLayout.h 1286629 
  libs/textlayout/tests/TestBlockLayout.cpp 5216d78 

Diff: http://git.reviewboard.kde.org/r/103664/diff/diff


Testing
-------

I've loaded and saved a file and roundtrips

I've added a unit test plus done manual testing


Thanks,

C. Boemann

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/calligra-devel/attachments/20120109/ec13bae4/attachment.htm>


More information about the calligra-devel mailing list