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

          Priority: medium
            Bug ID: 75735
          Assignee: [email protected]
           Summary: RTF: FILEOPEN: RTF import sometimes fails to unstack
                    tabs
          Severity: normal
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: [email protected]
          Hardware: Other
        Whiteboard: BSA
            Status: UNCONFIRMED
           Version: 4.2.1.1 release
         Component: Writer
           Product: LibreOffice

Problem description: 
RTF groups, denoted by enclosing curly brackets, are supposed to stack the
current character/ruler state and restore it after the closing bracket. If the
previous state included tab settings, LibreOffice fails to delete tabs set
within the brackets, leading to column misalignment.

Steps to reproduce:
1. This small RTF file displays the problem:
{\rtf1\ansi
{\fonttbl \f0\froman Times;}
\deftab31680
\pard\tx1440\plain\ql\f0\fs40
{\tx360\tx720\tx1080\tab\tab\tab\tab This is line one.\
}{\tx480\tx960\tab\tab\tab This is line two.\
}{\tx720\tab\tab This is line three.\
}{\tab This is line four.\
\tab All these lines should start one inch from the left margin.\
}}

2. This similar file doesn't, as it has no tabs set outside the groups:
{\rtf1\ansi
{\fonttbl \f0\froman Times;}
\deftab31680
\pard\plain\ql\f0\fs40
{\tx360\tx720\tx1080\tx1440\tab\tab\tab\tab This is line one.\
}{\tx480\tx960\tx1440\tab\tab\tab This is line two.\
}{\tx720\tx1440\tab\tab This is line three.\
}{\tx1440\tab This is line four.\
\tab All these lines should start one inch from the left margin.\
}}

Current behavior:
The first file shows misaligned lines; the second doesn't.

Expected behavior:
Both files should display like the second file, as they do in Microsoft Word,
(Mac) TextEdit, Nisus Writer, and other RTF readers.

It's a somewhat obscure bug. I hope the fix is easy.



Operating System: Mac OS X
Version: 4.2.1.1 release

-- 
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