Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-26-2022, 07:20 PM
f0g f0g is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Novice
whitespace width is different in 2 docxs
 
Join Date: Jan 2022
Posts: 5
f0g is on a distinguished road
Default whitespace width is different in 2 docxs

I have pasted an ASCII diagram to 2 docx files with the same properties (font, size ...). But what surprised me was that I got a different result. In b.docx, lines are aligned, while in a.docx, they are not. I observed that the whitespace's width is different. Can somebody help me to change some settings on a.docx, so that it can work like b.docx? I mean, all the lines of an ASCII diagram can be aligned auto when I paste it in.
Attached Files
File Type: docx a.docx (18.8 KB, 13 views)
File Type: docx b.docx (41.9 KB, 11 views)
Reply With Quote
  #2  
Old 01-26-2022, 08:18 PM
f0g f0g is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Novice
whitespace width is different in 2 docxs
 
Join Date: Jan 2022
Posts: 5
f0g is on a distinguished road
Default

I found a similar issue here but no answer yet.
- https://www.msofficeforums.com/word/...ite-space.html

I also tried with office 2003 and 2016, both have the same problem. Word Online has no such a issue.
Reply With Quote
  #3  
Old 01-27-2022, 12:29 AM
Peterson Peterson is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

Looks like it has something to do with the age of the file and the version of Word it was originally created with.

I was able to fix the problem as follows:
Click File > Options > Advanced

Scroll down to the Compatibility options for section

Next to Lay out this document as if created in, click on Custom and select Microsoft 2013-2021 from the drop-down menu

Click OK
Reply With Quote
  #4  
Old 01-27-2022, 02:07 AM
f0g f0g is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Novice
whitespace width is different in 2 docxs
 
Join Date: Jan 2022
Posts: 5
f0g is on a distinguished road
Default

Quote:
Originally Posted by Peterson View Post
Looks like it has something to do with the age of the file and the version of Word it was originally created with.

I was able to fix the problem as follows:
Click File > Options > Advanced

Scroll down to the Compatibility options for section

Next to Lay out this document as if created in, click on Custom and select Microsoft 2013-2021 from the drop-down menu

Click OK
Good point! Since I don't have a newer version of word, I have done the following experiment. I created a new doc with Word Online, and then pasted the ASCII diagram into the doc, unfortunately, it still presented with a wrong width.
Reply With Quote
  #5  
Old 01-27-2022, 07:28 AM
Charles Kenyon Charles Kenyon is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2019
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,124
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

It is not compatibility mode. I opened both and updated them to the latest document structure without changing the differences. It may be embedded fonts.
An examination of the XML of the two should show the differences. However, life is short and I am not that curious.
Reply With Quote
  #6  
Old 01-27-2022, 09:58 AM
Peterson Peterson is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

I agree that it is not the overall Compatibility Mode feature; when I upsaved a copy, the issue remained.

Embedding fonts would make the file size much larger, even if including only those that are used in the document.

Round-tripping the file to .doc, .xml, and .odt and back to .docx did not shake out the issue.

I went back take another look, because I'm a glutton, and this time, instead of changing Custom to Word 2013-2021, I unticked the only custom setting in the list -- Use Word 2010 table style rules -- then OK. No change.

So I went back in to Compatibility options for, changed Word 2013-2021 back to Custom, then ticked Use Word 2010 table style rules again, then OK. That also fixed the problem.

I think that the OP's Word is somehow messing with the settings, but how or why is behind my limited knowledge of XML.
Reply With Quote
  #7  
Old 01-27-2022, 12:26 PM
kilroyscarnival kilroyscarnival is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2019
Expert
 
Join Date: May 2019
Posts: 344
kilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nicekilroyscarnival is just really nice
Default

The only difference I see in Reveal Formatting is the hint of a Times New Roman pre-existing in the one Normal style.
Attached Images
File Type: jpg reveal_format.jpg (123.4 KB, 16 views)
Reply With Quote
  #8  
Old 01-27-2022, 03:39 PM
Guessed's Avatar
Guessed Guessed is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 3,967
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

On my machine, with the file showing variable sizes (a.docx) I went to File > Options and saw the Compatibility options show layout set to Word 2010. If I change this to Word 2013-2016, the spacing resolves to align the monospacing correctly.

I can then change it back to Word 2010 without the problem presenting itself again so I can only surmise that there was some hidden setting that is resolved by switching layout compatibility settings.
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
  #9  
Old 01-27-2022, 07:24 PM
f0g f0g is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Novice
whitespace width is different in 2 docxs
 
Join Date: Jan 2022
Posts: 5
f0g is on a distinguished road
Default

Quote:
Originally Posted by Peterson View Post
So I went back in to Compatibility options for, changed Word 2013-2021 back to Custom, then ticked Use Word 2010 table style rules again, then OK. That also fixed the problem.
You are right, it did solve the probem. Although I still don't understand why, you helped me a lot, thanks.
It would be appreciated if anyone could give a further explanation.
Reply With Quote
  #10  
Old 01-27-2022, 11:42 PM
Peterson Peterson is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 141
Peterson is on a distinguished road
Default

When I open the file in Word 2010, one of the activated layout options is "Balance SBCS and DBSC characters" - unticking it fixes the problem.

I did a little searching and found that this option is for Asian character sets, which use DBSC, or double-byte character sets (DBCS - Wikipedia).

I think you've got Word set up to handle Asian characters, or perhaps you're actually in Asia, and your version of Word is set up to handle this type of thing out-of-the-box. In fact, looking at the XML again, I can see that Simplified Chinese is listed in settings and styles files.

When you've been creating brand new files using Word Online and you're not having the problem, maybe the online program isn't setting Asian-language attributes in the file, or maybe pasting into the only program is excluding the attributes that are causing issues on the desktop version.
Reply With Quote
  #11  
Old 01-28-2022, 02:04 AM
f0g f0g is offline whitespace width is different in 2 docxs Windows 10 whitespace width is different in 2 docxs Office 2016
Novice
whitespace width is different in 2 docxs
 
Join Date: Jan 2022
Posts: 5
f0g is on a distinguished road
Default

Excellent! I think this is the root cause. Thanks again.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing on whitespace in folder background? charlisity Office 0 03-16-2016 08:45 AM
How to add whitespace above/below text in a cell? jdorin Excel 2 07-10-2014 07:07 PM
whitespace width is different in 2 docxs Word 2012: Change column width changes table width OpfinnarJocke Word Tables 1 09-22-2012 04:03 AM
Borderless printing still produces whitespace JSmith Word 4 06-15-2012 02:50 AM
whitespace width is different in 2 docxs Summary width marcofano Word 1 04-29-2010 04:32 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:04 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft