Bug 66458 - FILEOPEN: DOCX imports 'ptab' as 'tab' instead of its own type
Summary: FILEOPEN: DOCX imports 'ptab' as 'tab' instead of its own type
Status: RESOLVED DUPLICATE of bug 78144
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: filter:docx
Depends on:
Blocks: DOCX
  Show dependency treegraph
 
Reported: 2013-07-01 13:35 UTC by Adam CloudOn
Modified: 2023-06-08 01:13 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
very minimal DOCX containing a 'ptab' (10.00 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2013-07-01 13:37 UTC, Adam CloudOn
Details
ooxml tokenizer patch (1.76 KB, patch)
2013-07-03 14:58 UTC, Miklos Vajna
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adam CloudOn 2013-07-01 13:35:10 UTC
Problem description: 
When Writer imports a DOCX with 'ptab' in it - it imports it as a 'tab' and loses the attributes.

Steps to reproduce:
1. Open the attached DOCX
2. Save as NEW.DOCX
3. 'ptab' is converted to 'tab' in the 'document.xml'

Current behavior:
'ptab' is converted to 'tab'

Expected behavior:
'ptab' should be saved as is
              
Operating System: All
Version: 4.2.0.0.alpha0+ Master
Comment 1 Adam CloudOn 2013-07-01 13:37:30 UTC
Created attachment 81804 [details]
very minimal DOCX containing a 'ptab'

Added a very minimal DOCX containing a 'ptab'
Comment 2 Jorendc 2013-07-01 20:00:47 UTC
New right away. Saw the conversion between you and Miklos :) ...
Comment 3 Miklos Vajna 2013-07-03 14:58:27 UTC
Created attachment 81962 [details]
ooxml tokenizer patch

As discussed on IRC, this patch does the OOXML tokenizer part.
Comment 4 QA Administrators 2015-04-01 14:42:01 UTC Comment hidden (obsolete)
Comment 5 Buovjaga 2015-04-24 11:17:36 UTC
Reproduced, checked in document.xml.

Win 7 Pro 64-bit Version: 5.0.0.0.alpha1+ (x64)
Build ID: f3375fa07f27bd2ade519af3c07d69040d10eaa9
TinderBox: Win-x86_64@42, Branch:master, Time: 2015-04-22_23:38:50
Locale: fi_FI
Comment 6 Xisco Faulí 2016-04-20 13:32:08 UTC
This issue is still reproducible in

Version: 5.2.0.0.alpha0+
Build ID: d6bf3bcd8b51012d55a2ec962800a8549e2b85e1
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-04-15_06:45:16
Locale: es-ES (es_ES)
Comment 7 QA Administrators 2017-12-10 16:41:18 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2019-12-11 03:38:05 UTC Comment hidden (obsolete, spam)
Comment 9 QA Administrators 2021-12-11 04:21:49 UTC Comment hidden (obsolete, spam)
Comment 10 Justin L 2022-06-24 13:11:34 UTC
This bug report really needs to provide relevance here. What is a pTab and how does it differ from a regular tab? What is wrong with the document?
Comment 11 Miklos Vajna 2022-06-24 13:28:39 UTC
pTab is an OOXML feature: e.g. you can jump to the center of the paragraph without hardcoding the position of the tab. This means that in case later you set the page size or left/right margin, the tab position will be still at the horizontal center of the page, unlike with Writer's normal tabs. This is a missing feature.
Comment 12 Justin L 2023-06-08 01:12:09 UTC

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