https://bugs.freedesktop.org/show_bug.cgi?id=70578

Michael Stahl <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Whiteboard|BSA                         |BSA rtf_filter
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |
                 CC|                            |[email protected],
                   |                            |[email protected]
           See Also|                            |https://bugzilla.novell.com
                   |                            |/show_bug.cgi?id=825305
            Summary|FORMATTING: RTF: Tabular    |RTF import: "Normal"
                   |page misformatted           |paragraph style not
                   |                            |imported

--- Comment #4 from Michael Stahl <[email protected]> ---
Subtitle style applied: 0 line spacing in Word, 0.77/0.39 line spacing in
Writer

apparently the old RTF import filter did not import the "Subtitle" paragraph
style at all

the problem is that in Word the Subtitle style inherits from "Normal" which has
0 line spacing, in Writer it inherits from "Heading" which has the 0.77/0.39
line spacing

DOCX file is imported with proper Subtitle inheritance from "Default Style"

aha... problem is in the stylesheet:

{\stylesheet{\ql
\li0\ri0\widctlpar\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0
\fs20\lang1033\langfe1033\cgrid\langnp1033\langfenp1033 \snext0 Normal;}

the Normal style does not have "\s0" style index; apparently that's implicit?

RTF spec says:

"For <style>, both <styledef> and <stylename> are optional; the default is
paragraph style 0."

ok, implementing that wasn't hard...

... but now a unit test breaks, and ... holy crap, this is horrible...

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to