| Summary: | RTF rendering fails to neutralize indention using \li0 in a table with a shape | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | poul.steen |
| Component: | Writer | Assignee: | Not Assigned <libreoffice-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | major | CC: | aron.budea, poul.steen, vmiklos |
| Priority: | high | Keywords: | filter:rtf |
| Version: | 6.1.2.1 release | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.documentfoundation.org/show_bug.cgi?id=81943 | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Bug Depends on: | |||
| Bug Blocks: | 112765 | ||
| Attachments: |
RTF file demonstrating the lack of neutralizing indention using \li0
Picture showing how the RTF rendering was expected Picture showing how the RTF rendering works in version 6.1.3.2 |
||
|
Description
poul.steen
2018-11-22 21:14:19 UTC
Created attachment 146923 [details]
RTF file demonstrating the lack of neutralizing indention using \li0
This RTF file contains a table with two rows with some indented text in the left column (indented 567 twips using the control word "\\li567"). At the end of the cell,
this indention is neutralized both using the "\\li0" control word, which should be enough, and in addition using the control word sequence "\\par\\pard" to ensure the picture in the next cell is NOT indented.
This works perfectly in version 5.3.7.2, while the neutralization of the indention appears to be ignored in version 6.1.3.2. See the two pictures in the next two attachments
Created attachment 146924 [details]
Picture showing how the RTF rendering was expected
Picture of the correct rendering of the attached RTF file using LibreOffice Write version 5.3.7.2
Created attachment 146925 [details]
Picture showing how the RTF rendering works in version 6.1.3.2
Picture of the incorrect rendering of the attached RTF file using LibreOffice Write version 6.1.3.2
Correct image placement in Version: 6.0.6.2 Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77 Threads CPU : 4; OS : Mac OS X 10.14.1; UI Render : par défaut; Locale : fr-FR (fr_FR.UTF-8); Calc: group Incorrect placement in Version: 6.1.2.1 Build ID: 65905a128db06ba48db947242809d14d3f9a93fe Threads CPU : 4; OS : Mac OS X 10.14.1; UI Render : par défaut; Locale : fr-FR (fr_FR.UTF-8); Calc: group threaded CONFIRMING ===> regression This is actually OS-independent, and can be reproduced on Win and Linux as well (in MS Word the picture isn't shown, though). Bibisected to the following commit using repo bibisect-mac64-6.2. Adding Cc: to Miklos Vajna, please take a look. https://cgit.freedesktop.org/libreoffice/core/commit/?id=0c91f8f839d36c8b5af272b1d3c835d2f4af6b65 author Miklos Vajna <vmiklos@collabora.co.uk> 2018-07-16 22:04:02 +0200 committer Miklos Vajna <vmiklos@collabora.co.uk> 2018-07-17 09:03:42 +0200 tdf#81943 sw RTF import: fix missing wrap in background for in-table shape Opening the sample in Word, there is no image at all. Can you please attach a sample which is a valid RTF (Word accepts it) and reproduces the problem? Additionally, it seems to me that \shpleft567 explicitly asks positioning from the left edge of the paragraph area (567 twips). This was indeed ignored in the past, but that was a bug. So I would say unless it's possible to came up with a document where Word rendering matches your wish, this is not even a bug. Just set \shpleft to 0 if you want no left indent for your shape. For now I leave this bug open, but I remove the regression keyword: feel free to add it back if the request turns out to match Word's behavior. @ comment from Miklos Vajna 2018-12-04 14:39:24 UTC ("Can you please attach a sample which is a valid RTF (Word accepts it) and reproduces the problem?"):
I used to code RTF to be rendered using MS word, but unfortunately, I do not have MS Word any more, so I cannot test it there. That is why I use LibreOffice.
@ comment from Miklos Vajna 2018-12-04 14:46:52 UTC: I accept that it must have been a bug in my previous version of LibreOffice (5.3.7.2) that the \in0 did neutralize the indention for the shape, even though I explicitly specified \shpleft567 related to the paragraph. Therefore, that previous bug have now been solved in version 6.1.3.2, which is fine. So, I hereby withdraw this bug (121642), realizing I was wrong. I apologize for the confusion! No problem, I'm glad that we agree here. :-) |