Bug 41481 - [FILESAVE] RTF format don't resize subscripts and superscripts causing line spacing problems
Summary: [FILESAVE] RTF format don't resize subscripts and superscripts causing line s...
Status: CLOSED DUPLICATE of bug 36538
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
(earliest affected)
3.4.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
Depends on:
Reported: 2011-10-05 08:26 UTC by Joaquín Ignacio Aramendía
Modified: 2012-03-19 14:21 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:

RTF formatted testcase (4.28 KB, application/rtf)
2011-10-05 08:26 UTC, Joaquín Ignacio Aramendía

Note You need to log in before you can comment on or make changes to this bug.
Description Joaquín Ignacio Aramendía 2011-10-05 08:26:01 UTC
Created attachment 52011 [details]
RTF formatted testcase

When using superscripts and subscripts in a text, the font is resized in the UI to honor the linespacing. The problem arises when using subscripts and superscripts in the text and saving the file as RTF. One would expect that what we see in the UI is somewhat translated into the saved file so it can be reproduced when the file is reopened. The actual behavior on the saved file differs in such way that the characters super/subscripted are the same size as the font, shifted up. That causes the file not being reproductible even in LibreOffice.

Steps to reproduce:

1. Open a new Writer document or any existent document in any format.
2. Type in some text
3. Select a part of the text (just a few characters) and format those as superscript or subscript.
4. Save the document in RTF format.
5. Close the file
6. Reopen the same file.

What I expect: sub/superscripts resized so they don't add line spacing or fall out the fixed linespace.

What actually happens: The sub/superscripts are not resized, they are the same size as the main text just shifted up half line. One of two format annoyance follows: The line spacing gets bigger for just that line, or the text characters are cut-off (unreadable for the user) when the line spacing is fixed.

This issue is independent of the distribution (I'm assuming that based on two tests on different distributions, Arch and Ubuntu). Also is independent on the font used.
The worst problem is that you only notice it when reopening the file, that means that LibreOffice doesn't work WYSIWYG on that, you will see the right formatting on the screen but is not saved that way.

I'm attaching a testcase.
Comment 1 Jean-Baptiste Faure 2011-12-18 08:03:22 UTC
Confirmed in LO 3.4.4 but fixed in LO 3.5.0 beta-1 (LibreOffice 3.5.0beta1+ 
Build ID: ddc7af3-7f15fca-8eae9f1-ca8e46d-5bcbce4)

Setting as fixed. Please, feel free to reopen if the bug is still there for you in LO 3.5.0 beta. 

Best regards. JBF
Comment 2 Jean-Baptiste Faure 2012-03-19 14:21:35 UTC
Was a duplicate of bug 36538.
Works as expected in LO 3.5.1. Closing. Thank you

*** This bug has been marked as a duplicate of bug 36538 ***